~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Robert Collins
  • Date: 2008-02-20 00:42:39 UTC
  • mto: (3221.13.1 StackableBranch)
  • mto: This revision was merged to the branch mainline in revision 3537.
  • Revision ID: robertc@robertcollins.net-20080220004239-jieihiu0h1kno7fc
Backport development1 format (stackable packs) to before-shallow-branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1213
1213
 
1214
1214
    def get_format(self):
1215
1215
        return bzrdir.format_registry.make_bzrdir(
1216
 
            'development')
 
1216
            'development0')
1217
1217
 
1218
1218
    def check_format(self, t):
1219
1219
        self.assertEqualDiff(
1225
1225
 
1226
1226
    def get_format(self):
1227
1227
        return bzrdir.format_registry.make_bzrdir(
 
1228
            'development0-subtree')
 
1229
 
 
1230
    def check_format(self, t):
 
1231
        self.assertEqualDiff(
 
1232
            "Bazaar development format 0 with subtree support "
 
1233
            "(needs bzr.dev from before 1.3)\n",
 
1234
            t.get('format').read())
 
1235
 
 
1236
 
 
1237
class TestDevelopment1(TestKnitPackNoSubtrees):
 
1238
 
 
1239
    def get_format(self):
 
1240
        return bzrdir.format_registry.make_bzrdir(
 
1241
            'development')
 
1242
 
 
1243
    def check_format(self, t):
 
1244
        self.assertEqualDiff(
 
1245
            "Bazaar development format 1 (needs bzr.dev from before 1.3)\n",
 
1246
            t.get('format').read())
 
1247
 
 
1248
    def test_supports_external_lookups(self):
 
1249
        repo = self.make_repository('.', format=self.get_format())
 
1250
        self.assertTrue(repo._format.supports_external_lookups)
 
1251
 
 
1252
 
 
1253
class TestDevelopment1Subtree(TestKnitPackNoSubtrees):
 
1254
 
 
1255
    def get_format(self):
 
1256
        return bzrdir.format_registry.make_bzrdir(
1228
1257
            'development-subtree')
1229
1258
 
1230
1259
    def check_format(self, t):
1231
1260
        self.assertEqualDiff(
1232
 
            "Bazaar development format 0 with subtree support "
 
1261
            "Bazaar development format 1 with subtree support "
1233
1262
            "(needs bzr.dev from before 1.3)\n",
1234
1263
            t.get('format').read())
1235
1264
 
 
1265
    def test_supports_external_lookups(self):
 
1266
        repo = self.make_repository('.', format=self.get_format())
 
1267
        self.assertTrue(repo._format.supports_external_lookups)
 
1268
 
1236
1269
 
1237
1270
class TestRepositoryPackCollection(TestCaseWithTransport):
1238
1271