/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 graph.py

  • Committer: Jelmer Vernooij
  • Date: 2006-02-20 21:44:46 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: jelmer@samba.org-20060220214446-c29d22fb75afb378
Update to use post-repository API

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
    Returns a tuple of (revids, revisions, colours, children)
41
41
    """
42
 
    revisions = { start: branch.get_revision(start) }
 
42
    revisions = { start: branch.repository.get_revision(start) }
43
43
    children = { revisions[start]: set() }
44
44
    distances = { start: 0 }
45
45
    colours = { start: 0 }
69
69
            except KeyError:
70
70
                try:
71
71
                    parent = revisions[parent_id] \
72
 
                             = branch.get_revision(parent_id)
 
72
                             = branch.repository.get_revision(parent_id)
73
73
                except NoSuchRevision:
74
74
                    parent = revisions[parent_id] = DummyRevision(parent_id)
75
75