fast-import should not override the current branch (or should warn before doing it)
Bug #386544 reported by
Gioele Barabucci
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I accidentally run bzr fast-import in a directory that is part of a branch. bzr fast-import overwrote the .bzr directory with the new content and asked to run "bzr update" to adjust the working tree.
fast-import should not overwrite existing .bzr files. It should refuse to run when launched from a bzr-managed directory, or, at least, it should inform the user that it is about to overwrite the .bzr directory of the current branch.
summary: |
fast-import should not override the current branch (or should warn - before doing it)) + before doing it) |
To post a comment you must log in.
When restarting an import or doing an 'incremental' import, we actually want to extend the current branch though.
I'm pretty sure fast-import wouldn't have succeeded if the branch wasn't compatible with the import stream. Was that your experience?
Also, you should be able to recover quite easily using:
bzr uncommit -rxxxx
bzr revert