Patchwork hgweb: adding branch names from inbranch template to atom feed

login
register
mail settings
Submitter Jensen, Aaron
Date April 17, 2014, 6:50 p.m.
Message ID <19C008641EA0254BA2D9501B558E4A583B57AFDA@EXMBX01L-CRP-04.webmdhealth.net>
Download mbox | patch
Permalink /patch/4404/
State Accepted
Commit 91eb605022f54f05288c2aa21f3c69166d3840f3
Headers show

Comments

Jensen, Aaron - April 17, 2014, 6:50 p.m.
# HG changeset patch
# User Aaron Jensen <ajensen@webmd.net>
# Date 1397760343 25200
# Node ID c15d4e551b232c2cb3bf191e0d6ae288fe9b6255
# Parent  098a274764b3813ca0788728d88187d21b9785e5
hgweb: adding branch names from inbranch template to atom feed

Patch

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>