bzr fast-export can generate buggy data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Expired
|
Undecided
|
Unassigned |
Bug Description
when i was trying to use the fast exporter to rapidly fill in a git tree, I found that if the tree contains malformed commits, it forces an exceedingly harsh set of rebase to correct the issue. A prime example of this is within the official bazaar repository for grub ( see Revision 2266 and 3144 ). It is safe to assume that most developers will probably not want to mess with fixing invalid commit information, and would prefer that the tools take care of this automatically.
step 1) Get a local copy of the grub repository:
bzr branch http://
step 2) Confirm the existance of the buggy commits:
cd grub
bzr log | grep author\:\ $ -a8
step 3) look at the fast export of these commits...
bzr fast-export -r 2265..2266|less
bzr fast-export -r 3143..3144|less
step 4) attempting to import these commits into git will cause an invalid case.
A example of a valid commit that is probably the best solution to use... Namely automatically silence lines where the commit has no author defined, or the author that is defined is empty.