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

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

Comments

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

Patch

diff -r c15d4e551b23 -r 9ba72109ddbd mercurial/templates/rss/changelogentry.tmpl
--- a/mercurial/templates/rss/changelogentry.tmpl        Thu Apr 17 11:45:43 2014 -0700
+++ b/mercurial/templates/rss/changelogentry.tmpl     Thu Apr 17 11:47:49 2014 -0700
@@ -1,5 +1,5 @@ 
<item>
-    <title>{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title>
+    <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title>
     <guid isPermaLink="true">{urlbase}{url|urlescape}rev/{node|short}</guid>
     <description>
               <![CDATA[
@@ -10,7 +10,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>