/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Robert Collins
  • Date: 2007-03-06 06:35:00 UTC
  • mto: (2321.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070306063500-ihgarcmlv48p2gu0
Remove knit2 repository format- it has never been supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
 
315
315
    def test_mismatched_bundle(self):
316
316
        format = bzrdir.BzrDirMetaFormat1()
317
 
        format.repository_format = knitrepo.RepositoryFormatKnit2()
 
317
        format.repository_format = knitrepo.RepositoryFormatKnit3()
318
318
        serializer = BundleSerializerV08('0.8')
319
319
        b = self.make_branch('.', format=format)
320
320
        self.assertRaises(errors.IncompatibleBundleFormat, serializer.write, 
323
323
    def test_matched_bundle(self):
324
324
        """Don't raise IncompatibleBundleFormat for knit2 and bundle0.9"""
325
325
        format = bzrdir.BzrDirMetaFormat1()
326
 
        format.repository_format = knitrepo.RepositoryFormatKnit2()
 
326
        format.repository_format = knitrepo.RepositoryFormatKnit3()
327
327
        serializer = BundleSerializerV09('0.9')
328
328
        b = self.make_branch('.', format=format)
329
329
        serializer.write(b.repository, [], {}, StringIO())
331
331
    def test_mismatched_model(self):
332
332
        """Try copying a bundle from knit2 to knit1"""
333
333
        format = bzrdir.BzrDirMetaFormat1()
334
 
        format.repository_format = knitrepo.RepositoryFormatKnit2()
 
334
        format.repository_format = knitrepo.RepositoryFormatKnit3()
335
335
        source = self.make_branch_and_tree('source', format=format)
336
336
        source.commit('one', rev_id='one-id')
337
337
        source.commit('two', rev_id='two-id')
891
891
 
892
892
    def bzrdir_format(self):
893
893
        format = bzrdir.BzrDirMetaFormat1()
894
 
        format.repository_format = knitrepo.RepositoryFormatKnit2()
 
894
        format.repository_format = knitrepo.RepositoryFormatKnit3()
895
895
        return format
896
896
 
897
897