~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-04 17:32:03 UTC
  • mfrom: (1836.3.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060704173203-6de4c6bbbe1a6149
(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