NotifyExtension seems to be unused and basically broken

Greg Lindahl greg at blekko.com
Wed Feb 9 04:31:36 UTC 2011


> 1. Whatever is parsing the template string apparently has the power to
> substitute some "Key: value" portions into the email header. For
> example, if you put "Subject: foo" at one point in the template, it
> becomes the email subject; in some other locations, it becomes part of
> the body. It's not at all clear what criteria dictate this decision.

There is a double-eol between the headers and the body. That's why the
comment in the default hgrc file says to put a leading carriage
return; it isn't manipulating the headers.

Here's the one I use:

template = From: {author|person} hg <{author|email}>\nSubject: b: {desc|strip|fill68|firstline|strip} ({node|short})\n\nchangeset: {node|short}\ndetails: {baseurl}/rev/{node|short}\nuser: {author}\ndate: {date|date}\ndescription:\n{desc}\n

Note the \n\n before 'changeset:'

I use this with one email per changeset, works great.

-- greg




More information about the Mercurial mailing list