~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Ian Clatworthy
  • Date: 2008-07-04 03:29:14 UTC
  • mfrom: (3015.3.59 check)
  • mto: This revision was merged to the branch mainline in revision 3521.
  • Revision ID: ian.clatworthy@canonical.com-20080704032914-ymz2feecr4qxe160
Fix check to understand split up .bzr format (Daniel Mark Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2453
2453
        self.set_conflicts(un_resolved)
2454
2454
        return un_resolved, resolved
2455
2455
 
 
2456
    @needs_read_lock
 
2457
    def _check(self):
 
2458
        tree_basis = self.basis_tree()
 
2459
        tree_basis.lock_read()
 
2460
        try:
 
2461
            repo_basis = self.branch.repository.revision_tree(
 
2462
                self.last_revision())
 
2463
            if len(list(repo_basis.iter_changes(tree_basis))) > 0:
 
2464
                raise errors.BzrCheckError(
 
2465
                    "Mismatched basis inventory content.")
 
2466
            self._validate()
 
2467
        finally:
 
2468
            tree_basis.unlock()
 
2469
 
2456
2470
    def _validate(self):
2457
2471
        """Validate internal structures.
2458
2472