Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undo bzr revert

Tags:

bazaar

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".

like image 546
Stefano Borini Avatar asked May 02 '09 23:05

Stefano Borini


People also ask

How do I undo or redo an action?

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....

How do I undo changes after I have saved them?

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.

How do I undo multiple actions at the same time?

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.

How do I redo something I've undone in word?

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.)


2 Answers

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.

like image 54
Stefano Borini Avatar answered Feb 07 '23 06:02

Stefano Borini


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.

like image 22
xeon Avatar answered Feb 07 '23 05:02

xeon