~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Robert Collins
  • Date: 2006-07-04 17:23:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1840.
  • Revision ID: robertc@robertcollins.net-20060704172300-c4af39f04babcab8
(robertc) Teach repository.get_revision_graph, and revision.common_ancestor, about NULL_REVISION.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
                    pb=DummyProgress()):
241
241
    if None in (revision_a, revision_b):
242
242
        return None
 
243
    if NULL_REVISION in (revision_a, revision_b):
 
244
        return NULL_REVISION
243
245
    # trivial optimisation
244
246
    if revision_a == revision_b:
245
247
        return revision_a