~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-11 15:39:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5859.
  • Revision ID: jelmer@samba.org-20110511153920-i3d9jfirskxyl0mm
Add VersionedFileCheck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
from bzrlib.trace import note
57
57
from bzrlib.workingtree import WorkingTree
58
58
 
 
59
 
59
60
class Check(object):
60
61
    """Check a repository"""
61
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
 
62
73
    # The Check object interacts with InventoryEntry.check, etc.
63
74
 
64
75
    def __init__(self, repository, check_repo=True):