mercurial/graphmod.py
changeset 10602 94145b531cf9
parent 10264 d6512b3e9ac0
child 12951 101366ad816c
equal deleted inserted replaced
10601:b98b6a7363ae 10602:94145b531cf9
   113         for ecol, eid in enumerate(seen):
   113         for ecol, eid in enumerate(seen):
   114             if eid in next:
   114             if eid in next:
   115                 edges.append((ecol, next.index(eid), colors[eid]))
   115                 edges.append((ecol, next.index(eid), colors[eid]))
   116             elif eid == cur:
   116             elif eid == cur:
   117                 for p in parents:
   117                 for p in parents:
   118                     edges.append((ecol, next.index(p), colors[p]))
   118                     edges.append((ecol, next.index(p), color))
   119 
   119 
   120         # Yield and move on
   120         # Yield and move on
   121         yield (cur, type, data, (col, color), edges)
   121         yield (cur, type, data, (col, color), edges)
   122         seen = next
   122         seen = next