[PATCH] gweb: adding changeset branch information using <category> tag into RSS/Atom feeds (issue2530)

Alexey Sergeev alexs-csl at yandex.ru
Mon Dec 6 01:41:11 CST 2010


N!B! Unfortunately I was unable to run on neither on Windows 7 no Suse 11.3, so I can't sent any test changes.

# HG changeset patch
# User sab <sab at mail.scand>
# Date 1291620960 -7200
# Node ID e4969ae4b5c410e426dcbb2ea5ac70b9220e9580
# Parent  8c6b7a5f38c4585b1b2c2ceaffa8023f36a18479
hgweb: adding changeset branch information using <category> tag into RSS/Atom feeds (issue2530)

diff -r 8c6b7a5f38c4 -r e4969ae4b5c4 mercurial/templates/atom/changelogentry.tmpl
--- a/mercurial/templates/atom/changelogentry.tmpl      Wed Dec 01 18:47:40 2010 -0600
+++ b/mercurial/templates/atom/changelogentry.tmpl      Mon Dec 06 09:36:00 2010 +0200
@@ -6,6 +6,7 @@
    <name>{author|person|escape}</name>
    <email>{author|email|obfuscate}</email>
   </author>
+  <category>{branches%branchname}</category>
   <updated>{date|rfc3339date}</updated>
   <published>{date|rfc3339date}</published>
   <content type="xhtml">
diff -r 8c6b7a5f38c4 -r e4969ae4b5c4 mercurial/templates/atom/map
--- a/mercurial/templates/atom/map      Wed Dec 01 18:47:40 2010 -0600
+++ b/mercurial/templates/atom/map      Mon Dec 06 09:36:00 2010 +0200
@@ -9,3 +9,4 @@
 tags = tags.tmpl
 tagentry = tagentry.tmpl
 error = error.tmpl
+branchname = '{name}'
\ No newline at end of file
diff -r 8c6b7a5f38c4 -r e4969ae4b5c4 mercurial/templates/rss/changelogentry.tmpl
--- a/mercurial/templates/rss/changelogentry.tmpl       Wed Dec 01 18:47:40 2010 -0600
+++ b/mercurial/templates/rss/changelogentry.tmpl       Mon Dec 06 09:36:00 2010 +0200
@@ -3,5 +3,6 @@
     <guid isPermaLink="true">{urlbase}{url}rev/{node|short}</guid>
     <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
     <author>{author|obfuscate}</author>
+    <category>{branches%branchname}</category>
     <pubDate>{date|rfc822date}</pubDate>
 </item>
diff -r 8c6b7a5f38c4 -r e4969ae4b5c4 mercurial/templates/rss/map
--- a/mercurial/templates/rss/map       Wed Dec 01 18:47:40 2010 -0600
+++ b/mercurial/templates/rss/map       Mon Dec 06 09:36:00 2010 +0200
@@ -8,3 +8,4 @@
 tags = tags.tmpl
 tagentry = tagentry.tmpl
 error = error.tmpl
+branchinfo = '{name}'
\ No newline at end of file

-- 
Best regards,
 Alexey                          mailto:sab at mail.scand



More information about the Mercurial-devel mailing list