SV: Flagging stable patches

Nicolas Dumazet nicdumz at
Mon Jul 13 04:57:00 CDT 2009

2009/7/13 Martin Geisler <mg at>:
>> Martin Geisler wrote:
>> Wouldn't hg email --subject "(stable) foo: don't crash" ... be
>> adequate for this without having to mangle the actual commit message?

I think that it would be enough.

> It would -- together with the usual "[PATCH]" label, which people also
> depend on. Perhaps 'hg email' could grow a new option for specifying the
> repository short name. It could send messages with a subject like:
>  [PATCH shortname] first line of commit message

Would it make sense to introduce very basic templating for --subject ?

I'm thinking of a --template "%count% (stable) %subject%" which would expand to:

    [PATCH] (stable) patch doing a and b

for single patches, and for series:

    [PATCH 0 of n] (stable) serie summary
    [PATCH i of n] (stable) first line of commit message of patch i

This way, we could have a simple alias in our .hgrc:
    emailstable = email -t mercurial-devel at --template
"%count% (stable) %subject%"

Any good?

Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]

More information about the Mercurial-devel mailing list