Mercurial > hg-stable
comparison mercurial/hgweb.py @ 1769:982fb022a16a
Merged RSS feed for tags from Peter van Dijk
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 21 Feb 2006 16:04:47 +0100 |
parents | 50de0887bbcd adbc392dfd9e |
children | 8a1f2eae2832 |
comparison
equal
deleted
inserted
replaced
1765:b9fac31f34c9 | 1769:982fb022a16a |
---|---|
658 mf = cl.read(cl.tip())[0] | 658 mf = cl.read(cl.tip())[0] |
659 | 659 |
660 i = self.repo.tagslist() | 660 i = self.repo.tagslist() |
661 i.reverse() | 661 i.reverse() |
662 | 662 |
663 def entries(**map): | 663 def entries(notip=False, **map): |
664 parity = 0 | 664 parity = 0 |
665 for k,n in i: | 665 for k,n in i: |
666 if notip and k == "tip": continue | |
666 yield {"parity": parity, | 667 yield {"parity": parity, |
667 "tag": k, | 668 "tag": k, |
668 "tagmanifest": hex(cl.read(n)[0]), | 669 "tagmanifest": hex(cl.read(n)[0]), |
669 "date": cl.read(n)[2], | 670 "date": cl.read(n)[2], |
670 "node": hex(n)} | 671 "node": hex(n)} |
671 parity = 1 - parity | 672 parity = 1 - parity |
672 | 673 |
673 yield self.t("tags", | 674 yield self.t("tags", |
674 manifest=hex(mf), | 675 manifest=hex(mf), |
675 entries=entries) | 676 entries=lambda **x: entries(False, **x), |
677 entriesnotip=lambda **x: entries(True, **x)) | |
676 | 678 |
677 def summary(self): | 679 def summary(self): |
678 cl = self.repo.changelog | 680 cl = self.repo.changelog |
679 mf = cl.read(cl.tip())[0] | 681 mf = cl.read(cl.tip())[0] |
680 | 682 |