mq and named queues - and qseries --edit. Was: Re: mercurial at 11238: 10 new changesets (3 stable)

Martin Geisler mg at lazybytes.net
Fri Jun 4 13:58:02 CDT 2010


Mads Kiilerich <mads at kiilerich.com> writes:

> On 06/04/2010 07:32 PM, Henrik Stuart wrote:
>> I don't think it matters much if you have to write vim
>> .hg/patches-foo/series or vim .hg/mq/foo/series (and we'd still need to
>> have .hg/patches for backwards compatibility at any rate).
>
> No matter what: It could be hidden for most uses with qseries --edit
> in http://markmail.org/message/fx2sdplljwgcnx5b .
>
> It almost got accepted in http://markmail.org/message/3b3mwft5twynkbhf ;-)

Yeah, we should put your --edit patch in unless people like the idea
below better... it was actually suggested by Eric Eisner:

  http://markmail.org/message/ebzs3wesaysuoxbt

The idea is that instead of editing the series file manually, I would do
something like

  hg qpush --grab foo

to apply patch 'foo' next, thereby editing the series file on the fly.
This would basically turn the unapplied patches into a *set* instead of
a *list*, allowing you to grab any unapplied patch and apply it.

I would even consider making --grab the default when there is a named
patch on the command line. That way

  hg qpush     <-- apply next patch in series
  hg qpush foo <-- make 'foo' next and apply it

You would then use

  hg qgoto foo

to get the old behavior of

  hg qpush foo

-- 
Martin Geisler

See my Mercurial presentation: http://vimeo.com/11497288
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100604/f6b2a4fd/attachment.pgp>


More information about the Mercurial-devel mailing list