diff mercurial/hgweb/webcommands.py @ 16129:5e50982c633c

graph: in hgrc specify line width for main branch You can specify width to visually distinguish main branch (trunk) on hgweb's graph page. Settings format is branch_name.width = value, where width in px e.g.: [graph] default.width = 3
author Constantine Linnick <theaspect@gmail.com>
date Sun, 22 Jan 2012 19:35:26 +0700
parents 917f263eeb26
children 2695aaf4eb72
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Thu Feb 16 16:40:29 2012 -0600
+++ b/mercurial/hgweb/webcommands.py	Sun Jan 22 19:35:26 2012 +0700
@@ -770,7 +770,7 @@
         startrev = uprev
 
     dag = graphmod.dagwalker(web.repo, range(startrev, downrev - 1, -1))
-    tree = list(graphmod.colored(dag))
+    tree = list(graphmod.colored(dag, web.repo))
     canvasheight = (len(tree) + 1) * bg_height - 27
     data = []
     for (id, type, ctx, vtx, edges) in tree: