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

login
register
mail settings
Submitter Jensen, Aaron
Date April 16, 2014, 4:34 p.m.
Message ID <19C008641EA0254BA2D9501B558E4A583B577FCE@EXMBX01L-CRP-04.webmdhealth.net>
Download mbox | patch
Permalink /patch/4387/
State Deferred
Headers show

Comments

Jensen, Aaron - April 16, 2014, 4:34 p.m.
# HG changeset patch
# User Aaron Jensen <ajensen@webmd.net>
# Date 1397665924 25200
# Node ID 294a4dcaa3c53564e44023cdefc88c0a219f880c
# Parent  7407758ed13254b6488aee0050285e9eb8d6b9f9
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries.
Matt Mackall - April 16, 2014, 5:53 p.m.
On Wed, 2014-04-16 at 16:34 +0000, Jensen, Aaron wrote:
> # HG changeset patch
> # User Aaron Jensen <ajensen@webmd.net>
> # Date 1397665924 25200
> # Node ID 294a4dcaa3c53564e44023cdefc88c0a219f880c
> # Parent  7407758ed13254b6488aee0050285e9eb8d6b9f9
> hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries.

These are queued for default, thanks. I needed to amend the test suite.

Patch

diff -r 7407758ed132 -r 294a4dcaa3c5 mercurial/templates/rss/changelogentry.tmpl
--- a/mercurial/templates/rss/changelogentry.tmpl	Wed Apr 16 09:31:37 2014 -0700
+++ b/mercurial/templates/rss/changelogentry.tmpl	Wed Apr 16 09:32:04 2014 -0700
@@ -1,7 +1,39 @@ 
 <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;">user</th>
+		<td>{author|obfuscate}</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 7407758ed132 -r 294a4dcaa3c5 mercurial/templates/rss/map
--- a/mercurial/templates/rss/map	Wed Apr 16 09:31:37 2014 -0700
+++ b/mercurial/templates/rss/map	Wed Apr 16 09:32:04 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 />'