# HG changeset patch # User Peter van Dijk # Date 1138929688 -3600 # Node ID adbc392dfd9ebb1ecece82834da8021c6c7d8f57 # Parent 93f54a2b386417596e4a33465bb2152c9464a617 implement entriesnotip for tags in hgweb.py ; change entries to entriesnotip in templates/tags-rss.tmpl diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -654,9 +654,10 @@ class hgweb(object): 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 @@ class hgweb(object): 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 diff --git a/templates/tags-rss.tmpl b/templates/tags-rss.tmpl --- a/templates/tags-rss.tmpl +++ b/templates/tags-rss.tmpl @@ -1,6 +1,6 @@ #header# #repo|escape#: tags #repo|escape# tag history - #entries%tagentry# + #entriesnotip%tagentry#