~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: 2007-08-20 14:19:21 UTC
  • mfrom: (2598.5.19 nullrevision)
  • Revision ID: pqm@pqm.ubuntu.com-20070820141921-kmbpaev7g9epuy08
NULL_REVISION is returned to indicate the null revision, not None

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
def ensure_null(revision_id):
447
447
    """Ensure only NULL_REVISION is used to represent the null revisionn"""
448
448
    if revision_id is None:
 
449
        symbol_versioning.warn('NULL_REVISION should be used for the null'
 
450
            ' revision instead of None, as of bzr 0.91.',
 
451
            DeprecationWarning, stacklevel=2)
449
452
        return NULL_REVISION
450
453
    else:
451
454
        return revision_id