RFC: MQ patch reordering

Augie Fackler lists at durin42.com
Fri Jan 29 11:13:04 CST 2010


On Fri, Jan 29, 2010 at 8:53 AM, Greg Ward <greg-hg at gerg.ca> wrote:
> 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.

I'd like to integrate a feature along these lines into histedit, but
getting the mq state information to not be corrupt turns out to be
somewhat tricky.

>
> But neither of these is anywhere near as demanding or ambitious as
> what timeless outlined.  That sounds hard.
>
> Greg
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>


More information about the Mercurial-devel mailing list