mercurial/hgweb/webcommands.py
changeset 8842 acd03a6e2426
parent 8796 2bcef677a6c3
child 9136 31177742f54a
child 9402 5d49fdef6fd0
--- a/mercurial/hgweb/webcommands.py	Sat May 16 07:12:12 2009 +0200
+++ b/mercurial/hgweb/webcommands.py	Fri Jun 19 13:44:23 2009 +0200
@@ -668,10 +668,13 @@
     count = len(web.repo)
     changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx)
 
-    tree = list(graphmod.graph(web.repo, rev, downrev))
+    dag = graphmod.revisions(web.repo, rev, downrev)
+    tree = list(graphmod.colored(dag))
     canvasheight = (len(tree) + 1) * bg_height - 27;
     data = []
-    for (ctx, vtx, edges) in tree:
+    for (id, type, ctx, vtx, edges) in tree:
+        if type != graphmod.CHANGESET:
+            continue
         node = short(ctx.node())
         age = templatefilters.age(ctx.date())
         desc = templatefilters.firstline(ctx.description())