/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-05-26 04:27:39 UTC
  • mto: This revision was merged to the branch mainline in revision 2534.
  • Revision ID: aaron.bentley@utoronto.ca-20070526042739-0o2yva7r05fslgqm
Use GraphWalker.unique_ancestor to determine merge base

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
    """Raise ReservedId if the supplied revision_id is reserved"""
477
477
    if is_reserved_id(revision_id):
478
478
        raise errors.ReservedId(revision_id)
 
479
 
 
480
def ensure_null(revision_id):
 
481
    """Ensure only NULL_REVISION is used to represent the null revisionn"""
 
482
    if revision_id is None:
 
483
        return NULL_REVISION
 
484
    else:
 
485
        return revision_id