[PATCH 1 of 1] mq/qpop: option to keep current working directory contents and state

Matt Mackall mpm at selenic.com
Tue Nov 3 11:22:51 CST 2009


On Tue, 2009-11-03 at 17:46 +0100, Sune Foldager wrote:
> # HG changeset patch
> # User Sune Foldager <cryo at cyanite.org>
> # Date 1257266773 -3600
> # Node ID 0ec6fe902e1abd4f5f8faff0e35516a13651ff26
> # Parent  bd3af545c7c6f7fb66c9377259316220d329282d
> mq/qpop: option to keep current working directory contents and state
> 
> This allows you to qpop a patch, keeping its contents in the working directory,
> and then qdelete it subsequently. It can also, in connection with qimport, be used
> in general to "return committed changes to the working directory".

That's weird. It's sort of an inverse revert. There are a bunch of other
fairly obvious ways to do this fairly unusual operation, so I'm not sure
if it makes sense to add a new feature for it. For instance:

hg diff > foo
hg qpop
patch < foo 
# or hg import --no-commit foo

or:

hg qpop
hg import --no-commit .hg/patches/`hg qnext`


-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list