~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Aaron Bentley
  • Date: 2007-06-27 15:12:32 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070627151232-5rks71udygelmu1l
Avoid infinite loop when there is no unique lca

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
            lca = self.find_lca(*revisions)
277
277
            if len(lca) == 1:
278
278
                return lca.pop()
 
279
            if len(lca) == 0:
 
280
                raise errors.NoCommonAncestor(left_revision, right_revision)
279
281
            revisions = lca
280
282
 
281
283
    def iter_topo_order(self, revisions):