How to back out qnew?
Matt Mackall
mpm at selenic.com
Wed Apr 4 19:43:57 UTC 2012
On Wed, 2012-04-04 at 13:06 -0400, Roy Smith wrote:
> 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?
There's not a particularly good way, I'm still waiting for someone to
propose a sufficiently tidy solution. But there are plenty of workable
ways. Your first step might be:
$ hg qref -X ** # remove all changes from the current patch
Now you have an empty patch you can qpop and delete.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list