Patchwork hgweb: adding branch, tags, bookmarks, and file list to rss feed entries

login
register
mail settings
Submitter Jensen, Aaron
Date April 2, 2014, 6:25 p.m.
Message ID <19C008641EA0254BA2D9501B558E4A583B56F665@EXMBX01L-CRP-04.webmdhealth.net>
Download mbox | patch
Permalink /patch/4200/
State Deferred
Headers show

Comments

Jensen, Aaron - April 2, 2014, 6:25 p.m.
# HG changeset patch
# User Aaron Jensen <ajensen@webmd.net>
# Date 1396462882 25200
# Node ID b49ec13ab310a6a5557753ab1095f8f9f063efc8
# Parent  fb60bf22603300dad05867dc27e67171fbaface8
hgweb: adding branch, tags, bookmarks, and file list to rss feed entries

Patch

diff -r fb60bf226033 -r b49ec13ab310 mercurial/templates/rss/changelogentry.tmpl
--- a/mercurial/templates/rss/changelogentry.tmpl	Wed Apr 02 11:21:14 2014 -0700
+++ b/mercurial/templates/rss/changelogentry.tmpl	Wed Apr 02 11:21:22 2014 -0700
@@ -1,7 +1,35 @@ 
 <item>
-    <title>{desc|strip|firstline|strip|escape}</title>
+    <title>{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title>
     <guid isPermaLink="true">{urlbase}{url|urlescape}rev/{node|short}</guid>
-    <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
+    <description>
+	<![CDATA[
+	<table>
+	<tr>
+		<th style="text-align:left;">changeset</th>
+		<td>{node|short}</td>
+	</tr>
+	<tr>
+		<th style="text-align:left;">branch</th>
+		<td>{branches%"{name|escape}"}</td>
+	</tr>
+	<tr>
+		<th style="text-align:left;">bookmark</th>
+		<td>{bookmarks%"{name|escape}"}</td>
+	</tr>
+	<tr>
+		<th style="text-align:left;">tag</th>
+		<td>{tags%"{name|escape}"}</td>
+	</tr>
+	<tr>
+		<th style="text-align:left;vertical-align:top;">description</th>
+		<td>{desc|strip|escape|addbreaks|nonempty}</td>
+	</tr>
+	<tr>
+		<th style="text-align:left;vertical-align:top;">files</th>
+		<td>{files}</td>
+	</tr>
+	</table>
+	]]></description>
     <author>{author|obfuscate}</author>
     <pubDate>{date|rfc822date}</pubDate>
 </item>
diff -r fb60bf226033 -r b49ec13ab310 mercurial/templates/rss/map
--- a/mercurial/templates/rss/map	Wed Apr 02 11:21:14 2014 -0700
+++ b/mercurial/templates/rss/map	Wed Apr 02 11:21:22 2014 -0700
@@ -12,3 +12,7 @@ 
 branches = branches.tmpl
 branchentry = branchentry.tmpl
 error = error.tmpl
+filedifflink = '{file|escape}<br />'
+fileellipses = '{file|escape}<br />'
+filenodelink = '{file|escape}<br />'
+filenolink = '{file|escape}<br />'