Reputation: 143825
I accidentally reverted all my changes with bzr revert before committing. Are all my changes lost or can I undo the revert somehow?
I haven't lost many changes, but I'd enjoy to know if there is a safety net against this. Google does not help with "undo bzr revert".
Upvotes: 16
Views: 3636
Reputation: 952
It increments the number each time.
The first time you revert a file it adds ~1~ to the end. If you make more changes and revert again, it adds a ~2~, etc.
Upvotes: 5
Reputation: 143825
Ok, apparently bazaar leaves a file with appended ".~1~" to reverted files, so in order to recover the changes it's simply a cp of this file onto the reverted one.
Upvotes: 19