[PATCH] hgweb: adding branch names from inbranch template to atom feed

Jensen, Aaron ajensen at webmd.net
Thu Apr 17 18:50:05 UTC 2014


# HG changeset patch
# User Aaron Jensen <ajensen at webmd.net>
# Date 1397760343 25200
# Node ID c15d4e551b232c2cb3bf191e0d6ae288fe9b6255
# Parent  098a274764b3813ca0788728d88187d21b9785e5
hgweb: adding branch names from inbranch template to atom feed

diff -r 098a274764b3 -r c15d4e551b23 mercurial/templates/atom/changelogentry.tmpl
--- a/mercurial/templates/atom/changelogentry.tmpl   Thu Apr 17 14:54:46 2014 +0200
+++ b/mercurial/templates/atom/changelogentry.tmpl                Thu Apr 17 11:45:43 2014 -0700
@@ -1,5 +1,5 @@
  <entry>
-  <title>{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape|nonempty}</title>
+  <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape|nonempty}</title>
   <id>{urlbase}{url|urlescape}#changeset-{node}</id>
   <link href="{urlbase}{url|urlescape}rev/{node|short}"/>
   <author>
@@ -16,7 +16,7 @@
               </tr>
               <tr>
                               <th style="text-align:left;">branch</th>
-                              <td>{branches%"{name|escape}"}</td>
+                             <td>{inbranch%"{name|escape}"}{branches%"{name|escape}"}</td>
               </tr>
               <tr>
                               <th style="text-align:left;">bookmark</th>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20140417/b0830a6c/attachment-0002.html>


More information about the Mercurial-devel mailing list