hg mail notification

Kelly O'Hair Kelly.Ohair at Sun.COM
Fri Nov 30 16:37:54 UTC 2007


How about just a short "HG:" prefix?

-kto

Mark Reinhold wrote:
>> Date: Thu, 29 Nov 2007 11:45:37 -0800
>> From: kumar.srinivasan at sun.com
> 
>> The email notification of hg pushes have the following in the subject line
>> jdk7/path1/path2
>>
>> TeamWare set this in the "Code Manager notification ...." , and I could
>> set up the mail client filters to appropriately deal with it.
> 
> Yes, and the subject line of every TeamWare message was, helpfully,
> exactly the same, i.e., "Code Manager notification (putback-to)".
> 
>> Is it possible to special prefix the notification subject with an
>> invariant string,
>> ex:  Hg Push: /jdk7/tl/.....
> 
> Yes, it's possible, though it'd waste space in the subject line.
> 
> What do others think?
> 
> For filtering purposes you can key on the two X- headers that we're
> adding to every Mercurial notification message, e.g.,
> 
>     X-Hg-URL: http://hg.openjdk.java.net/jdk7/jsn/jdk
>     X-Hg-Changeset: 57ad67ba0e3452169921d79166557272dd489430
> 
> If a message contains one of those headers then it's a Mercurial
> notification.
> 
> - Mark



More information about the build-dev mailing list