##// 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 654 i = self.repo.tagslist()
655 655 i.reverse()
656 656
657 def entries(**map):
657 def entries(notip=False, **map):
658 658 parity = 0
659 659 for k,n in i:
660 if notip and k == "tip": continue
660 661 yield {"parity": parity,
661 662 "tag": k,
662 663 "tagmanifest": hex(cl.read(n)[0]),
@@ -666,7 +667,8 b' class hgweb(object):'
666 667
667 668 yield self.t("tags",
668 669 manifest=hex(mf),
669 entries=entries)
670 entries=lambda **x: entries(False, **x),
671 entriesnotip=lambda **x: entries(True, **x))
670 672
671 673 def summary(self):
672 674 cl = self.repo.changelog
@@ -1,6 +1,6 b''
1 1 #header#
2 2 <title>#repo|escape#: tags </title>
3 3 <description>#repo|escape# tag history</description>
4 #entries%tagentry#
4 #entriesnotip%tagentry#
5 5 </channel>
6 6 </rss>
General Comments 0
You need to be logged in to leave comments. Login now