~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-13 15:37:47 UTC
  • mfrom: (5850.1.6 check)
  • Revision ID: pqm@pqm.ubuntu.com-20110513153747-aw3d2lsjyk40bp9q
(jelmer) Split versioned-file specific bits out Check into
 VersionedFileCheck. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
from bzrlib.branch import Branch
54
54
from bzrlib.bzrdir import BzrDir
55
55
from bzrlib.revision import NULL_REVISION
56
 
from bzrlib.symbol_versioning import deprecated_function, deprecated_in
57
56
from bzrlib.trace import note
58
57
from bzrlib.workingtree import WorkingTree
59
58
 
 
59
 
60
60
class Check(object):
61
61
    """Check a repository"""
62
62
 
 
63
    def __init__(self, repository, check_repo=True):
 
64
        self.repository = repository
 
65
 
 
66
    def report_results(self, verbose):
 
67
        raise NotImplementedError(self.report_results)
 
68
 
 
69
 
 
70
class VersionedFileCheck(Check):
 
71
    """Check a versioned file repository"""
 
72
 
63
73
    # The Check object interacts with InventoryEntry.check, etc.
64
74
 
65
75
    def __init__(self, repository, check_repo=True):