~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Ian Clatworthy
  • Date: 2007-10-25 06:24:37 UTC
  • mfrom: (2939.2.6 bzr.pack-naming)
  • mto: This revision was merged to the branch mainline in revision 2941.
  • Revision ID: ian.clatworthy@internode.on.net-20071025062437-z33vk6gnklueq2xc
renaming of experimental pack formats to include knitpack in their name (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
            empty_repo.abort_write_group()
763
763
 
764
764
 
765
 
class TestExperimentalNoSubtrees(TestCaseWithTransport):
 
765
class TestKnitPackNoSubtrees(TestCaseWithTransport):
766
766
 
767
767
    def get_format(self):
768
 
        return bzrdir.format_registry.make_bzrdir('experimental')
 
768
        return bzrdir.format_registry.make_bzrdir('knitpack-experimental')
769
769
 
770
770
    def test_disk_layout(self):
771
771
        format = self.get_format()
780
780
        self.check_databases(t)
781
781
 
782
782
    def check_format(self, t):
783
 
        self.assertEqualDiff('Bazaar Experimental no-subtrees\n',
 
783
        self.assertEqualDiff(
 
784
            "Bazaar Packs Containing Knits Format (bzr 0.92)\n",
784
785
                             t.get('format').read())
785
786
 
786
787
    def assertHasKndx(self, t, knit_name):
1084
1085
        self.assertRaises(errors.LockBroken, repo._pack_collection._unlock_names)
1085
1086
 
1086
1087
 
1087
 
class TestExperimentalSubtrees(TestExperimentalNoSubtrees):
 
1088
class TestKnitPackSubtrees(TestKnitPackNoSubtrees):
1088
1089
 
1089
1090
    def get_format(self):
1090
 
        return bzrdir.format_registry.make_bzrdir('experimental-subtree')
 
1091
        return bzrdir.format_registry.make_bzrdir(
 
1092
            'knitpack-subtree-experimental')
1091
1093
 
1092
1094
    def check_format(self, t):
1093
 
        self.assertEqualDiff('Bazaar Experimental subtrees\n',
1094
 
                             t.get('format').read())
 
1095
        self.assertEqualDiff(
 
1096
            "Bazaar Packs Containing Knits With Subtrees Format (bzr 0.92)\n",
 
1097
            t.get('format').read())
1095
1098
 
1096
1099
 
1097
1100
class TestRepositoryPackCollection(TestCaseWithTransport):
1098
1101
 
1099
1102
    def get_format(self):
1100
 
        return bzrdir.format_registry.make_bzrdir('experimental')
 
1103
        return bzrdir.format_registry.make_bzrdir('knitpack-experimental')
1101
1104
 
1102
1105
    def test__max_pack_count(self):
1103
1106
        """The maximum pack count is a function of the number of revisions."""