How to back out qnew?

Roy Smith roy at panix.com
Wed Apr 4 17:06:13 UTC 2012


I had a bunch of changed files in my sandbox when I decided I wanted to split one of them out as a separate patch.  I did:

hg qnew -m "blah blah" station.py

instead of

hg qnew -m "blah blah" station-patch station.py

and ended up with a patch that had all the changed files in it.  What's the best way to revert the qnew command and get my sandbox back to the pre-qnew state?

PS -- at this point, it's a bit of an academic exercise.  The changes were not extensive, so I just did qpop and qdelete.  But it would be nice to know how to recover for the next time I do this.


---
Roy Smith
roy at panix.com






More information about the Mercurial mailing list