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".
Undo, redo, or repeat an action. 1 Undo an action. To undo an action press Ctrl+Z. If you prefer your mouse, click Undo on the Quick Access Toolbar. You can press Undo (or CTRL+Z ... 2 Redo an action. 3 Repeat an action. See More....
You can undo changes, even after you have saved, and then save again, as long as you are within the undo limits (By default Office saves the last 100 undoable actions). To undo an action press Ctrl+Z. If you prefer your mouse, click Undo on the Quick Access Toolbar.
If you can't undo an action, the Undo command changes to Can't Undo. To undo several actions at the same time, click the arrow next to Undo , select the actions in the list that you want to undo, and then click the list. Tip: If you're not able to undo the changes you wish to revert, you may be able to restore a previous version of the file.
To redo something you've undone, press Ctrl+Y or F4. (If F4 doesn't seem to work, you may need to press the F-Lock key or Fn Key, then F4). If you prefer to use the mouse, click Redo on the Quick Access toolbar. (The Redo button only appears after you've undone an action.)
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With