hgweb/graph: edge should be same color as the destination
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 07 Mar 2010 17:44:43 +0100
changeset 10602 94145b531cf9
parent 10601 b98b6a7363ae
child 10603 f511df3a4357
hgweb/graph: edge should be same color as the destination
mercurial/graphmod.py
--- a/mercurial/graphmod.py	Sat Mar 06 13:29:54 2010 +0100
+++ b/mercurial/graphmod.py	Sun Mar 07 17:44:43 2010 +0100
@@ -115,7 +115,7 @@
                 edges.append((ecol, next.index(eid), colors[eid]))
             elif eid == cur:
                 for p in parents:
-                    edges.append((ecol, next.index(p), colors[p]))
+                    edges.append((ecol, next.index(p), color))
 
         # Yield and move on
         yield (cur, type, data, (col, color), edges)