14
votes

I'm using hgweb.cgi and I'm setting up the notify extension so that email will be sent with each push to the server. The template setting is nice, but I can't find complete documentation anywhere. I had to guess based on bug reports or other posts that including Subject: at the beginning of the template pattern would allow me to specify the subject. I've been searching all morning (including on the Mercurial wiki) for the list of keywords Mercurial recognizes in template patterns and can't find it anywhere. Does such a list exist?

At the moment I am specifically looking for the template keyword that will translate to the name of the repo as specified in the web.name value in the repo's hgrc file. For example, if the following is specified in the .hg/hgrc file for a repo:

[web]
name = Cool Software

What keyword can I use that will be translated to "Cool Software"?

Of course, ultimately I'd really like to have the definitive list so I can write templates without having to guess the magic word.

3

3 Answers

19
votes

The Mercurial help system itself is usually the best source for this type of information..

In this case, you may use hg help templates to see the most up-to-date list.

0
votes

This is a great guide: http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html

No exhaustive but a great guide.

EDIT: paste the wrong link first time. updated it now.