hgweb: add guid to rss items
authorSune Foldager <cryo@cyanite.org>
Tue, 10 Feb 2009 14:22:25 +0100
changeset 7750 b03416194895
parent 7749 f32af51aaee5
child 7751 9294c0158c42
hgweb: add guid to rss items
templates/rss/changelogentry.tmpl
templates/rss/error.tmpl
--- a/templates/rss/changelogentry.tmpl	Tue Feb 10 14:21:27 2009 +0100
+++ b/templates/rss/changelogentry.tmpl	Tue Feb 10 14:22:25 2009 +0100
@@ -1,6 +1,6 @@
 <item>
     <title>#desc|strip|firstline|strip|escape#</title>
-    <link>{urlbase}{url}rev/{node|short}</link>
+    <guid isPermaLink="true">{urlbase}{url}rev/{node|short}</guid>
     <description><![CDATA[#desc|strip|escape|addbreaks#]]></description>
     <author>#author|obfuscate#</author>
     <pubDate>#date|rfc822date#</pubDate>
--- a/templates/rss/error.tmpl	Tue Feb 10 14:21:27 2009 +0100
+++ b/templates/rss/error.tmpl	Tue Feb 10 14:22:25 2009 +0100
@@ -4,6 +4,7 @@
     <item>
       <title>Error</title>
       <description>{error|escape}</description>
+      <guid>http://www.selenic.com/mercurial/#error</guid>
     </item>
   </channel>
 </rss>