2237
2237
def get_format_description(self):
2238
2238
"""See RepositoryFormat.get_format_description()."""
2239
2239
return "Packs containing knits with rich root support\n"
2242
class RepositoryFormatPackDevelopment0(RepositoryFormatPack):
2243
"""A no-subtrees development repository.
2245
This format should be retained until the second release after bzr 1.0.
2247
No changes to the disk behaviour from pack-0.92.
2250
repository_class = KnitPackRepository
2251
_commit_builder_class = PackCommitBuilder
2252
_serializer = xml5.serializer_v5
2254
def _get_matching_bzrdir(self):
2255
return bzrdir.format_registry.make_bzrdir('development0')
2257
def _ignore_setting_bzrdir(self, format):
2260
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2262
def get_format_string(self):
2263
"""See RepositoryFormat.get_format_string()."""
2264
return "Bazaar development format 0 (needs bzr.dev from before 1.1)\n"
2266
def get_format_description(self):
2267
"""See RepositoryFormat.get_format_description()."""
2268
return ("Development repository format, currently the same as "
2271
def check_conversion_target(self, target_format):
2275
class RepositoryFormatPackDevelopment0Subtree(RepositoryFormatPack):
2276
"""A subtrees development repository.
2278
This format should be retained until the second release after bzr 1.0.
2280
No changes to the disk behaviour from pack-0.92-subtree.
2283
repository_class = KnitPackRepository
2284
_commit_builder_class = PackRootCommitBuilder
2285
rich_root_data = True
2286
supports_tree_reference = True
2287
_serializer = xml7.serializer_v7
2289
def _get_matching_bzrdir(self):
2290
return bzrdir.format_registry.make_bzrdir(
2291
'development0-subtree')
2293
def _ignore_setting_bzrdir(self, format):
2296
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2298
def check_conversion_target(self, target_format):
2299
if not target_format.rich_root_data:
2300
raise errors.BadConversionTarget(
2301
'Does not support rich root data.', target_format)
2302
if not getattr(target_format, 'supports_tree_reference', False):
2303
raise errors.BadConversionTarget(
2304
'Does not support nested trees', target_format)
2306
def get_format_string(self):
2307
"""See RepositoryFormat.get_format_string()."""
2308
return ("Bazaar development format 0 with subtree support "
2309
"(needs bzr.dev from before 1.1)\n")
2311
def get_format_description(self):
2312
"""See RepositoryFormat.get_format_description()."""
2313
return ("Development repository format, currently the same as "
2314
"pack-0.92-subtree\n")