/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Aaron Bentley
  • Date: 2007-07-11 14:58:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070711145854-06486yosdvexapy1
Got all tests passing with Branch returning 'null:' for null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
    if is_reserved_id(revision_id):
484
484
        raise errors.ReservedId(revision_id)
485
485
 
 
486
 
486
487
def ensure_null(revision_id):
487
488
    """Ensure only NULL_REVISION is used to represent the null revisionn"""
488
489
    if revision_id is None:
490
491
    else:
491
492
        return revision_id
492
493
 
 
494
 
493
495
def is_null(revision_id):
494
496
    return revision_id in (None, NULL_REVISION)