~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.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:
458
458
            rev = branch.repository.get_revision(r.rev_id)
459
459
            if not rev.parent_ids:
460
460
                revno = 0
461
 
                revision_id = None
 
461
                revision_id = revision.NULL_REVISION
462
462
            else:
463
463
                revision_id = rev.parent_ids[0]
464
464
                try: