~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_implementations/test_check.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-28 01:35:49 UTC
  • mfrom: (3036.1.4 check)
  • Revision ID: pqm@pqm.ubuntu.com-20071128013549-w54seazrf4oeywb9
(robertc) Fix check to correctly report unreferenced texts. (Robert
        Collins, John A Meinel, 162931, 165071)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    )
31
31
 
32
32
 
 
33
class TestNoSpuriousInconsistentAncestors(TestCaseWithRepository):
 
34
 
 
35
    def test_two_files_different_versions_no_inconsistencies_bug_165071(self):
 
36
        """Two files, with different versions can be clean."""
 
37
        tree = self.make_branch_and_tree('.')
 
38
        self.build_tree(['foo'])
 
39
        tree.smart_add(['.'])
 
40
        tree.commit('1')
 
41
        self.build_tree(['bar'])
 
42
        tree.smart_add(['.'])
 
43
        tree.commit('2')
 
44
        # XXX: check requires a non-empty revision IDs list, but it ignores the
 
45
        # contents of it!
 
46
        check_object = tree.branch.repository.check(['ignored'])
 
47
        check_object.report_results(verbose=False)
 
48
        log = self._get_log(keep_log_file=True)
 
49
        self.assertContainsRe(
 
50
            log,
 
51
            "0 unreferenced text versions")
 
52
 
 
53
 
33
54
class TestFindInconsistentRevisionParents(TestCaseWithBrokenRevisionIndex):
34
55
 
35
56
    def test__find_inconsistent_revision_parents(self):