~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/revision/knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-28 07:08:27 UTC
  • mfrom: (2553.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070628070827-h5s313dg5tnag9vj
(robertc) Show the names of commit hooks during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
"""
22
22
 
23
23
 
24
 
from bzrlib import (
25
 
    errors,
26
 
    osutils,
27
 
    revision as _mod_revision,
28
 
    )
 
24
from bzrlib import errors, osutils
29
25
from bzrlib.knit import KnitVersionedFile, KnitPlainFactory
30
26
from bzrlib.store.revision import RevisionStore
31
27
from bzrlib.store.versioned import VersionedFileStore
129
125
    def has_revision_id(self, revision_id, transaction):
130
126
        """True if the store contains revision_id."""
131
127
        revision_id = osutils.safe_revision_id(revision_id)
132
 
        return (_mod_revision.is_null(revision_id)
 
128
        return (revision_id is None
133
129
                or self.get_revision_file(transaction).has_version(revision_id))
134
130
 
135
131
    def _has_signature(self, revision_id, transaction):