~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

  • Committer: Aaron Bentley
  • Date: 2005-10-03 16:55:41 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051003165541-407522f389c7b955
Fixed last_revision calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        object.__init__(self)
100
100
        self.branch = branch
101
101
        self.other_branch = other_branch
102
 
        revision_a = self.branch.last_patch()
 
102
        revision_a = self.branch.last_revision()
103
103
        if other_branch is not None:
104
104
            greedy_fetch(branch, other_branch)
105
 
            revision_b = self.other_branch.last_patch()
 
105
            revision_b = self.other_branch.last_revision()
106
106
            try:
107
107
                self.root, self.ancestors, self.descendants, self.common = \
108
108
                    combined_graph(revision_a, revision_b, self.branch)