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

Greg Ward greg-hg at gerg.ca
Tue Nov 3 15:34:03 CST 2009


On Tue, Nov 3, 2009 at 11:46 AM, Sune Foldager <cryo at cyanite.org> 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".

I see Matt's point about how this is already possible ... if you are a
3-star Unix jock who already knows about patch and `hg qnext`, etc.
etc.  I think this is a very useful addition.  I'm pretty sure there
are cases where I could not be bothered to do

  hg qpop
  patch -p1 < .hg/patch/`hg qnext`

but I would have bothered with

  hg qpop --keep

I know it's a trivial difference, it's just less cognitive load.  This
feels like a really handy addition to qpop.

Greg



More information about the Mercurial-devel mailing list