~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

Move doctest import to increase speed

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
# raising them.  If there's more than one exception it'd be good to see them
33
33
# all.
34
34
 
35
 
from bzrlib.errors import BzrCheckError
 
35
from bzrlib.errors import BzrCheckError, NoSuchRevision
 
36
from bzrlib.symbol_versioning import *
 
37
from bzrlib.trace import mutter, note, warning
36
38
import bzrlib.ui
37
 
from bzrlib.trace import note
 
39
 
38
40
 
39
41
class Check(object):
40
42
    """Check a repository"""
146
148
            if inv_sha1 != rev.inventory_sha1:
147
149
                raise BzrCheckError('Inventory sha1 hash doesn\'t match'
148
150
                    ' value in revision {%s}' % rev_id)
 
151
        else:
 
152
            self.missing_inventory_sha_cnt += 1
 
153
            mutter("no inventory_sha1 on revision {%s}", rev_id)
149
154
        self._check_revision_tree(rev_id)
150
155
        self.checked_rev_cnt += 1
151
156