[PATCH 2 of 2] qseries: add --edit option for editing .hg/patches/series

Mads Kiilerich mads at kiilerich.com
Thu Apr 29 17:24:53 CDT 2010


Martin Geisler wrote, On 04/29/2010 01:31 PM:
> Mads Kiilerich<mads at kiilerich.com>  writes:
>
>> Martin Geisler wrote, On 04/29/2010 09:12 AM:
>>
>>> I sort of like what you're doing here -- it is a bit strange to tell
>>> people to edit files in .hg. I this case I think we can do better than
>>> just launching the editor, though: we should verify the file after save.
>>>
>> Verify how?
>>
> Verify that the file can still can be parsed and that the user hasn't
> reordered patches that are currently applied. Something like that.
>

I often reorder applied patches. It is a bit confusing to push and pop 
until I qpop -a and qpush -a, but that is often the best workflow for 
me. Do you see other problems with that?

I do however sometimes mess up the consistency between series file and 
actual patches - especially when patches are version controlled and I 
try to merge changes. And sometimes the series file gets out of sync - 
especially after hg/hgtk crashes. So the way things are it could be nice 
with a mq check/verify/fix command in general.

/Mads


More information about the Mercurial-devel mailing list