hgext/beautifygraph.py
changeset 39091 de3a9d7ec1c2
parent 39090 836433f3bdd6
child 39290 5b9f116104f9
equal deleted inserted replaced
39090:836433f3bdd6 39091:de3a9d7ec1c2
    53 
    53 
    54 def convertedges(line):
    54 def convertedges(line):
    55     line = ' %s ' % line
    55     line = ' %s ' % line
    56     pretty = []
    56     pretty = []
    57     for idx in pycompat.xrange(len(line) - 2):
    57     for idx in pycompat.xrange(len(line) - 2):
    58         pretty.append(prettyedge(line[idx], line[idx + 1], line[idx + 2]))
    58         pretty.append(prettyedge(line[idx:idx + 1],
       
    59                                  line[idx + 1:idx + 2],
       
    60                                  line[idx + 2:idx + 3]))
    59     return ''.join(pretty)
    61     return ''.join(pretty)
    60 
    62 
    61 def getprettygraphnode(orig, *args, **kwargs):
    63 def getprettygraphnode(orig, *args, **kwargs):
    62     node = orig(*args, **kwargs)
    64     node = orig(*args, **kwargs)
    63     if node == 'o':
    65     if node == 'o':