mercurial/graphmod.py
changeset 28627 d7af9b4ae7dd
parent 28601 cd10171d6c71
child 28891 ac30adb260ea
equal deleted inserted replaced
28626:60ee2593a270 28627:d7af9b4ae7dd
    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