##// END OF EJS Templates
implement entriesnotip for tags in hgweb.py ; change entries to entriesnotip in templates/tags-rss.tmpl
Peter van Dijk -
r1767:adbc392d default
parent child Browse files
Show More
@@ -654,9 +654,10 b' class hgweb(object):'
654 i = self.repo.tagslist()
654 i = self.repo.tagslist()
655 i.reverse()
655 i.reverse()
656
656
657 def entries(**map):
657 def entries(notip=False, **map):
658 parity = 0
658 parity = 0
659 for k,n in i:
659 for k,n in i:
660 if notip and k == "tip": continue
660 yield {"parity": parity,
661 yield {"parity": parity,
661 "tag": k,
662 "tag": k,
662 "tagmanifest": hex(cl.read(n)[0]),
663 "tagmanifest": hex(cl.read(n)[0]),
@@ -666,7 +667,8 b' class hgweb(object):'
666
667
667 yield self.t("tags",
668 yield self.t("tags",
668 manifest=hex(mf),
669 manifest=hex(mf),
669 entries=entries)
670 entries=lambda **x: entries(False, **x),
671 entriesnotip=lambda **x: entries(True, **x))
670
672
671 def summary(self):
673 def summary(self):
672 cl = self.repo.changelog
674 cl = self.repo.changelog
@@ -1,6 +1,6 b''
1 #header#
1 #header#
2 <title>#repo|escape#: tags </title>
2 <title>#repo|escape#: tags </title>
3 <description>#repo|escape# tag history</description>
3 <description>#repo|escape# tag history</description>
4 #entries%tagentry#
4 #entriesnotip%tagentry#
5 </channel>
5 </channel>
6 </rss>
6 </rss>
General Comments 0
You need to be logged in to leave comments. Login now