RFC: MQ patch reordering

Greg Ward greg-hg at gerg.ca
Fri Jan 29 08:53:45 CST 2010


On Fri, Jan 29, 2010 at 4:50 AM, Frank Kingswood
<frank at kingswood-consulting.co.uk> wrote:
> I frequently find myself reordering patches in a MQ queue. That often means
> hacking the series file, which is a bit risky.

Yeah, it'd be nice to have a better tool than "jed
.hg/patches/series".  My idea is very minimal and low-ambition:

  hg qreorder

should run my editor on .hg/patches/series, with some friendly help
text ("HG: blah blah blah"), and then validate the results afterwards.

Bare minimum: qpop all patches, run editor, check result, save to
.hg/patches/series, qpush back to where I was.

More ambitious: run editor, check result, qpop up to the first patch
that was affected by the reordering, write .hg/patches/series, qpush
back to where I was.

But neither of these is anywhere near as demanding or ambitious as
what timeless outlined.  That sounds hard.

Greg


More information about the Mercurial-devel mailing list