/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 branchview/linegraph.py

  • Committer: Martin Albisetti
  • Date: 2008-06-20 03:33:17 UTC
  • mfrom: (498.1.6 gtk)
  • Revision ID: argentina@gmail.com-20080620033317-14hiurwurhhb98ze
(Elliot Murphy) Fix dbus importing

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from bzrlib.revision import NULL_REVISION
13
13
from bzrlib.tsort import merge_sort
14
14
 
15
 
def linegraph(graph, start_revs, maxnum=None, broken_line_length=None,
16
 
              graph_data=True, mainline_only=False):
 
15
def linegraph(repository, start_revs, maxnum, broken_line_length = None,
 
16
              graph_data = True, mainline_only = False):
17
17
    """Produce a directed graph of a bzr repository.
18
18
 
19
19
    Returns a tuple of (line_graph, revid_index, columns_len) where
43
43
    curved, kinked, etc.) and to pick the actual colours for each index.
44
44
    """
45
45
    
 
46
    graph = repository.get_graph()
46
47
    graph_parents = {}
47
48
    ghosts = set()
48
49
    graph_children = {}