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

Martin Geisler mg at aragost.com
Thu Apr 29 06:31:20 CDT 2010


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.

> The best counter argument would perhaps be to somehow introduce
> commands for reordering the patches. Introduce qmove? Or qpush --move?
> But that would probably give strange behavior with guards?

I don't know what would be a good command line interface for this.

Btw, it's a very long time since I have last edited my series file by
hand. I am now using TortoiseHg to do this: it lets you reorder patches
by clicking on the patch you want to move and pressing Ctrl-{Up,Down}.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list