[PATCH 1 of 1] mq/qpop: option to keep current working directory contents and state
Sune Foldager
cryo at cyanite.org
Tue Nov 3 15:56:46 CST 2009
Greg Ward wrote:
> 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.
Thanks; I also think so (obviously :p). Could we allow this on the
ground that: (
- It's simple and few lines of code
- It fits nicely into qpop's logic
- It allows you to 'empty' a line of patches in one go
- It's in an extension )?
Maybe the --keep-wdir option should be renamed --keep, though? and maybe
(although I don't think that's important) get the short option -k.
/Sune
More information about the Mercurial-devel
mailing list