/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/linegraph.py

  • Committer: Gary van der Merwe
  • Date: 2007-09-05 10:33:53 UTC
  • mto: (256.2.37 gtk)
  • mto: This revision was merged to the branch mainline in revision 289.
  • Revision ID: garyvdm@gmail.com-20070905103353-a9cea7kx7tr54cbk
Show Revision No in tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
def linegraph(branch, start, maxnum):
15
15
    """Produce a directed graph of a bzr branch.
16
16
 
17
 
    Returns a list of tuples of (revision, node, lines, parents, children).
 
17
    Returns a list of tuples of (revision,
 
18
                                 node,
 
19
                                 lines,
 
20
                                 parents,
 
21
                                 children,
 
22
                                 revno_sequence).
18
23
 
19
24
    Node is a tuple of (column, colour) with column being a zero-indexed
20
25
    column number of the graph that this revision represents and colour
89
94
                     merge_depth,     #the column of the line
90
95
                     color))
91
96
        
92
 
        linegraph.append((revision, (merge_depth, color),
93
 
                          [], parents, children))
 
97
        linegraph.append((revision,
 
98
                          (merge_depth, color),
 
99
                          [],
 
100
                          parents,
 
101
                          children,
 
102
                          revno_sequence))
94
103
 
95
104
    return (linegraph, rev_index, revisions)
96
105