mq finish patch?

Patrick Mézard pmezard at gmail.com
Wed Oct 1 08:44:03 CDT 2008


Neal Becker a écrit :
> My main problem is when using mq, I often forget and start a new patch without doing qnew.  This makes a mess.  What I think I want, is a way to 'close' a patch.  Any attempts to commit new changes would produce an error, rather than adding to the qtop.

You can replace the:

$ hg qnew -e mypatch
$ [hack some code]
$ hg qrefresh
$ [hack some more]
$ hg qrefresh

workflow with:

$ [hack some code]
$ hg qnew -f -e mypatch
$ [hack some more]
$ hg qrefresh

Not sure if it helps, I find it much more natural than creating a patch before starting to work on something. Once you have changes, the choice is to create a new patch or incorporate them in the top one.

--
Patrick Mézard


More information about the Mercurial mailing list