~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.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:
20
20
from bzrlib.lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
from bzrlib import (
 
23
    check,
23
24
    debug,
24
25
    fetch as _mod_fetch,
25
26
    fifo_cache,
1850
1851
            raise errors.NoSuchRevision(self, revision_id)
1851
1852
        return record.get_bytes_as('fulltext')
1852
1853
 
 
1854
    def check(self, revision_ids, callback_refs, check_repo):
 
1855
        result = check.VersionedFileCheck(self, check_repo=check_repo)
 
1856
        result.check(callback_refs)
 
1857
        return result
 
1858
 
1853
1859
    def _find_inconsistent_revision_parents(self, revisions_iterator=None):
1854
1860
        """Find revisions with different parent lists in the revision object
1855
1861
        and in the index graph.