comparison mercurial/hgweb.py @ 1575:0a1cca912fda

[hgweb] gitweb style: File annotate converted, file revision made more like the deafault style Namespace polution prevention (manifest vs. tagmanifest - shouldn't be a problem yet) File annotate updated File revision now has commit info
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Mon, 05 Dec 2005 07:07:40 -0500
parents 32b091ce4026
children 85803ec2daab
comparison
equal deleted inserted replaced
1574:32b091ce4026 1575:0a1cca912fda
630 def entries(**map): 630 def entries(**map):
631 parity = 0 631 parity = 0
632 for k,n in i: 632 for k,n in i:
633 yield {"parity": parity, 633 yield {"parity": parity,
634 "tag": k, 634 "tag": k,
635 "manifest": hex(cl.read(n)[0]), 635 "tagmanifest": hex(cl.read(n)[0]),
636 "date": cl.read(n)[2], 636 "date": cl.read(n)[2],
637 "node": hex(n)} 637 "node": hex(n)}
638 parity = 1 - parity 638 parity = 1 - parity
639 639
640 yield self.t("tags", 640 yield self.t("tags",
666 yield self.t("tagentry", 666 yield self.t("tagentry",
667 parity = parity, 667 parity = parity,
668 tag = k, 668 tag = k,
669 node = hex(n), 669 node = hex(n),
670 date = t, 670 date = t,
671 manifest = hex(m)) 671 tagmanifest = hex(m))
672 parity = 1 - parity 672 parity = 1 - parity
673 673
674 def changelist(**map): 674 def changelist(**map):
675 parity = 0 675 parity = 0
676 cl = self.repo.changelog 676 cl = self.repo.changelog