views:

14

answers:

1

I would like to configure our Mercurial server installation so the rss/atom feed will publish the branch name of the changeset, in addition to the standard fields (title, guid, description, author, pubDate).

+1  A: 

Installation locations differ, but on ubuntu you'll find the relevant file as /usr/share/mercurial/templates/atom/changelogentry.tmpl.

It starts out looking like:

 <entry>
  <title>{desc|strip|firstline|strip|escape|nonempty}</title>
  <id>{urlbase}{url}#changeset-{node}</id>
  <link href="{urlbase}{url}rev/{node|short}"/>
  <author>
   <name>{author|person|escape}</name>
   <email>{author|email|obfuscate}</email>
      </author>
  <updated>{date|rfc3339date}</updated>
  <published>{date|rfc3339date}</published>
  <content type="xhtml">
   <div xmlns="http://www.w3.org/1999/xhtml"&gt;
    <pre xml:space="preserve">{desc|escape|nonempty}</pre>
   </div>
  </content>
 </entry>

and you can add anything you find in hg help templates including:

branches    String. The name of the branch on which the changeset was committed. Will be
            empty if the branch name was default.
Ry4an