OMG pull --overwrite overwrites not only files but all information about commits.... No. It doesn't
Bug #800771 reported by
Kirill Danilov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I made several commits in local repo and after that tried to push it to central SVN repo. I found that someone had changed project and branch became diverged. So for some reason I did pull with -overwrite option and lost not only any changes in files I did but all notices about commits and history.
I expect when I do commit it is saved forever. Nothing can erase information about that commit and file history of it except manual removing .bzr files and dirs from file system.
It is very strange that anyone can remove all records about done commits via standard bzr command.
tags: | added: check-for-breezy |
To post a comment you must log in.
No. pull -overwrite does not delete the history of your branch.
It changes the tip (the tip revision defines the whole ancestry since each revisions is linked to its parent(s)).
The history associated with your previous tip is still present in the repository.
Look at 'bzr help heads' from the bzrtools plugin (especially the --dead-only parameter).
When you'll find your previous tip, you'll be able to restore it with 'bzr pull --overwrite -r<my_old_tip>' which will restore both your files and your tip (how ironic no ;).
When branches diverges, you need to merge them, so next time you want to 'bzr merge' before 'bzr push' but not 'bzr pull --overwrite'.