~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.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:
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
    @needs_read_lock
 
1855
    def _check(self, revision_ids, callback_refs, check_repo):
 
1856
        result = check.VersionedFileCheck(self, check_repo=check_repo)
 
1857
        result.check(callback_refs)
 
1858
        return result
 
1859
 
1853
1860
    def _find_inconsistent_revision_parents(self, revisions_iterator=None):
1854
1861
        """Find revisions with different parent lists in the revision object
1855
1862
        and in the index graph.