Mercurial > hg > mercurial-crew-with-dirclash
changeset 1767:adbc392dfd9e
implement entriesnotip for tags in hgweb.py ; change entries to entriesnotip in templates/tags-rss.tmpl
author | Peter van Dijk <peter@dataloss.nl> |
---|---|
date | Fri, 03 Feb 2006 02:21:28 +0100 |
parents | 93f54a2b3864 |
children | f79afc26ae3b |
files | mercurial/hgweb.py templates/tags-rss.tmpl |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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