--- a/mercurial/hgweb/hgweb_mod.py Tue Mar 27 01:41:23 2007 -0300
+++ b/mercurial/hgweb/hgweb_mod.py Fri Mar 16 17:55:42 2007 -0400
@@ -530,6 +530,23 @@
date=self.repo.changectx(n).date())
parity += 1
+
+ def branches(**map):
+ parity = 0
+
+ b = self.repo.branchtags()
+ l = [(-self.repo.changelog.rev(n), n, t) for t, n in b.items()]
+ l.sort()
+
+ for r,n,t in l:
+ ctx = self.repo.changectx(n)
+
+ yield {'parity': self.stripes(parity),
+ 'branch': t,
+ 'node': hex(n),
+ 'date': ctx.date()}
+ parity += 1
+
def heads(**map):
parity = 0
count = 0
@@ -578,6 +595,7 @@
self.config("web", "author", "unknown")), # also
lastchange=cl.read(cl.tip())[2],
tags=tagentries,
+ branches=branches,
heads=heads,
shortlog=changelist,
node=hex(cl.tip()),