##// END OF EJS Templates
Merged RSS feed for tags from Peter van Dijk
Thomas Arendsen Hein -
r1769:982fb022 merge default
parent child Browse files
Show More
@@ -0,0 +1,6 b''
1 <item>
2 <title>#tag|escape#</title>
3 <link>#url#?cs=#node|short#</link>
4 <description><![CDATA[#tag|strip|escape|addbreaks#]]></description>
5 <pubDate>#date|rfc822date#</pubDate>
6 </item>
@@ -0,0 +1,6 b''
1 #header#
2 <title>#repo|escape#: tags </title>
3 <description>#repo|escape# tag history</description>
4 #entriesnotip%tagentry#
5 </channel>
6 </rss>
@@ -660,9 +660,10 b' class hgweb(object):'
660 i = self.repo.tagslist()
660 i = self.repo.tagslist()
661 i.reverse()
661 i.reverse()
662
662
663 def entries(**map):
663 def entries(notip=False, **map):
664 parity = 0
664 parity = 0
665 for k,n in i:
665 for k,n in i:
666 if notip and k == "tip": continue
666 yield {"parity": parity,
667 yield {"parity": parity,
667 "tag": k,
668 "tag": k,
668 "tagmanifest": hex(cl.read(n)[0]),
669 "tagmanifest": hex(cl.read(n)[0]),
@@ -672,7 +673,8 b' class hgweb(object):'
672
673
673 yield self.t("tags",
674 yield self.t("tags",
674 manifest=hex(mf),
675 manifest=hex(mf),
675 entries=entries)
676 entries=lambda **x: entries(False, **x),
677 entriesnotip=lambda **x: entries(True, **x))
676
678
677 def summary(self):
679 def summary(self):
678 cl = self.repo.changelog
680 cl = self.repo.changelog
@@ -4,3 +4,5 b' changelog = changelog-rss.tmpl'
4 changelogentry = changelogentry-rss.tmpl
4 changelogentry = changelogentry-rss.tmpl
5 filelog = filelog-rss.tmpl
5 filelog = filelog-rss.tmpl
6 filelogentry = filelogentry-rss.tmpl
6 filelogentry = filelogentry-rss.tmpl
7 tags = tags-rss.tmpl
8 tagentry = tagentry-rss.tmpl
@@ -1,11 +1,14 b''
1 #header#
1 #header#
2 <title>#repo|escape#: tags</title>
2 <title>#repo|escape#: tags</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=tags;style=rss" title="RSS feed for #repo|escape#: tags">
3 </head>
5 </head>
4 <body>
6 <body>
5
7
6 <div class="buttons">
8 <div class="buttons">
7 <a href="?cl=tip">changelog</a>
9 <a href="?cl=tip">changelog</a>
8 <a href="?mf=#manifest|short#;path=/">manifest</a>
10 <a href="?mf=#manifest|short#;path=/">manifest</a>
11 <a type="application/rss+xml" href="?cmd=tags;style=rss">rss</a>
9 </div>
12 </div>
10
13
11 <h2>tags:</h2>
14 <h2>tags:</h2>
General Comments 0
You need to be logged in to leave comments. Login now