~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2007-09-28 04:40:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2905.
  • Revision ID: andrew.bennetts@canonical.com-20070928044046-fyl5mq8gszi78g5y
Deprecate revision_ids arg to Repository.check and other tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        self.assertEqual({'rev1c': set(['rev3'])}, result)
139
139
 
140
140
    def too_many_parents_factory(self, repo):
 
141
        """Build a repository where 'broken-revision' of 'a-file' claims to
 
142
        have parents ['good-parent', 'bad-parent'].  However 'bad-parent' is in
 
143
        the ancestry of 'good-parent', so the correct parent list for that file
 
144
        version are is just ['good-parent'].
 
145
        """
141
146
        inv = self.make_one_file_inventory(
142
147
            repo, 'bad-parent', [], root_revision='bad-parent')
143
148
        self.add_revision(repo, 'bad-parent', inv, [])
154
159
        repo = self.make_repository_using_factory(
155
160
            self.too_many_parents_factory)
156
161
        self.require_text_parent_corruption(repo)
157
 
        check_result = repo.check(['XXX ignored rev ids'])
 
162
        check_result = repo.check()
158
163
        self.assertEqual(
159
164
            [('broken-revision', 'a-file-id',
160
165
              ['good-parent', 'bad-parent'], ['good-parent']),