~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Aaron Bentley
  • Date: 2007-07-11 16:42:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070711164237-n1x38fz7fttybkqp
Push NULL_REVISION deeper

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    revisions_source is an object supporting a get_revision operation that
125
125
    behaves like Branch's.
126
126
    """
 
127
    if is_null(candidate_id):
 
128
        return True
127
129
    return (candidate_id in branch.repository.get_ancestry(revision_id,
128
130
            topo_sorted=False))
129
131
 
493
495
 
494
496
 
495
497
def is_null(revision_id):
 
498
    assert revision_id is not None
496
499
    return revision_id in (None, NULL_REVISION)