implement entriesnotip for tags in hgweb.py ; change entries to entriesnotip in templates/tags-rss.tmpl
--- a/mercurial/hgweb.py Thu Feb 02 12:00:45 2006 +0100
+++ b/mercurial/hgweb.py Fri Feb 03 02:21:28 2006 +0100
@@ -654,9 +654,10 @@
i = self.repo.tagslist()
i.reverse()
- def entries(**map):
+ def entries(notip=False, **map):
parity = 0
for k,n in i:
+ if notip and k == "tip": continue
yield {"parity": parity,
"tag": k,
"tagmanifest": hex(cl.read(n)[0]),
@@ -666,7 +667,8 @@
yield self.t("tags",
manifest=hex(mf),
- entries=entries)
+ entries=lambda **x: entries(False, **x),
+ entriesnotip=lambda **x: entries(True, **x))
def summary(self):
cl = self.repo.changelog
--- a/templates/tags-rss.tmpl Thu Feb 02 12:00:45 2006 +0100
+++ b/templates/tags-rss.tmpl Fri Feb 03 02:21:28 2006 +0100
@@ -1,6 +1,6 @@
#header#
<title>#repo|escape#: tags </title>
<description>#repo|escape# tag history</description>
- #entries%tagentry#
+ #entriesnotip%tagentry#
</channel>
</rss>