# HG changeset patch # User Thomas Arendsen Hein # Date 1140534287 -3600 # Node ID 982fb022a16a46930e48c9adfc6b220b6c824bcb # Parent b9fac31f34c9381252f00739b4b97b2e1d1ffddd# Parent f79afc26ae3b347000ced2d9469213b4a1fbe4e9 Merged RSS feed for tags from Peter van Dijk diff -r b9fac31f34c9 -r 982fb022a16a mercurial/hgweb.py --- a/mercurial/hgweb.py Tue Feb 21 15:54:50 2006 +0100 +++ b/mercurial/hgweb.py Tue Feb 21 16:04:47 2006 +0100 @@ -660,9 +660,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]), @@ -672,7 +673,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 diff -r b9fac31f34c9 -r 982fb022a16a templates/map-rss --- a/templates/map-rss Tue Feb 21 15:54:50 2006 +0100 +++ b/templates/map-rss Tue Feb 21 16:04:47 2006 +0100 @@ -4,3 +4,5 @@ changelogentry = changelogentry-rss.tmpl filelog = filelog-rss.tmpl filelogentry = filelogentry-rss.tmpl +tags = tags-rss.tmpl +tagentry = tagentry-rss.tmpl diff -r b9fac31f34c9 -r 982fb022a16a templates/tagentry-rss.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/tagentry-rss.tmpl Tue Feb 21 16:04:47 2006 +0100 @@ -0,0 +1,6 @@ + + #tag|escape# + #url#?cs=#node|short# + + #date|rfc822date# + diff -r b9fac31f34c9 -r 982fb022a16a templates/tags-rss.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/tags-rss.tmpl Tue Feb 21 16:04:47 2006 +0100 @@ -0,0 +1,6 @@ +#header# + #repo|escape#: tags + #repo|escape# tag history + #entriesnotip%tagentry# + + diff -r b9fac31f34c9 -r 982fb022a16a templates/tags.tmpl --- a/templates/tags.tmpl Tue Feb 21 15:54:50 2006 +0100 +++ b/templates/tags.tmpl Tue Feb 21 16:04:47 2006 +0100 @@ -1,11 +1,14 @@ #header# #repo|escape#: tags +
changelog manifest +rss

tags: