equal
deleted
inserted
replaced
31 PARENT = 'P' |
31 PARENT = 'P' |
32 GRANDPARENT = 'G' |
32 GRANDPARENT = 'G' |
33 MISSINGPARENT = 'M' |
33 MISSINGPARENT = 'M' |
34 # Style of line to draw. None signals a line that ends and is removed at this |
34 # Style of line to draw. None signals a line that ends and is removed at this |
35 # point. |
35 # point. |
36 EDGES = {PARENT: '|', GRANDPARENT: '|', MISSINGPARENT: '|'} |
36 EDGES = {PARENT: '|', GRANDPARENT: ':', MISSINGPARENT: None} |
37 |
37 |
38 def groupbranchiter(revs, parentsfunc, firstbranch=()): |
38 def groupbranchiter(revs, parentsfunc, firstbranch=()): |
39 """Yield revisions from heads to roots one (topo) branch at a time. |
39 """Yield revisions from heads to roots one (topo) branch at a time. |
40 |
40 |
41 This function aims to be used by a graph generator that wishes to minimize |
41 This function aims to be used by a graph generator that wishes to minimize |