Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo a revert in mercurial [duplicate]

After I had accidentally added several files with

hg add

I wanted to revert that with

hg revert --all

Unfortunatelly I hadn't committed my intended changes so they were reverted as well. Can I get that content back?

like image 564
BandGap Avatar asked May 13 '13 16:05

BandGap


1 Answers

You did not specify the --no-backup, so there should be backup files right next to the actual file.

Documentation to support this

Modified files are saved with a .orig suffix before reverting. To disable these backups, use --no-backup.

like image 125
Justin Pihony Avatar answered Sep 24 '22 02:09

Justin Pihony