2316
2316
" (deprecated)")
2319
class RepositoryFormatKnitPack6(RepositoryFormatPack):
2320
"""A repository with stacking and btree indexes,
2321
without rich roots or subtrees.
2323
This is equivalent to pack-1.6 with B+Tree indices.
2326
repository_class = KnitPackRepository
2327
_commit_builder_class = PackCommitBuilder
2328
supports_external_lookups = True
2329
# What index classes to use
2330
index_builder_class = BTreeBuilder
2331
index_class = BTreeGraphIndex
2334
def _serializer(self):
2335
return xml5.serializer_v5
2337
def _get_matching_bzrdir(self):
2338
return bzrdir.format_registry.make_bzrdir('1.9')
2340
def _ignore_setting_bzrdir(self, format):
2343
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2345
def get_format_string(self):
2346
"""See RepositoryFormat.get_format_string()."""
2347
return "Bazaar RepositoryFormatKnitPack6 (bzr 1.9)\n"
2349
def get_format_description(self):
2350
"""See RepositoryFormat.get_format_description()."""
2351
return "Packs 6 (uses btree indexes, requires bzr 1.9)"
2353
def check_conversion_target(self, target_format):
2357
class RepositoryFormatKnitPack6RichRoot(RepositoryFormatPack):
2358
"""A repository with rich roots, no subtrees, stacking and btree indexes.
2360
This format should be retained until the second release after bzr 1.7.
2362
1.6.1-subtree[as it might have been] with B+Tree indices.
2365
repository_class = KnitPackRepository
2366
_commit_builder_class = PackRootCommitBuilder
2367
rich_root_data = True
2368
supports_tree_reference = False # no subtrees
2369
supports_external_lookups = True
2370
# What index classes to use
2371
index_builder_class = BTreeBuilder
2372
index_class = BTreeGraphIndex
2375
def _serializer(self):
2376
return xml6.serializer_v6
2378
def _get_matching_bzrdir(self):
2379
return bzrdir.format_registry.make_bzrdir(
2382
def _ignore_setting_bzrdir(self, format):
2385
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2387
def check_conversion_target(self, target_format):
2388
if not target_format.rich_root_data:
2389
raise errors.BadConversionTarget(
2390
'Does not support rich root data.', target_format)
2392
def get_format_string(self):
2393
"""See RepositoryFormat.get_format_string()."""
2394
return "Bazaar RepositoryFormatKnitPack6RichRoot (bzr 1.9)\n"
2396
def get_format_description(self):
2397
return "Packs 6 rich-root (uses btree indexes, requires bzr 1.9)"
2319
2400
class RepositoryFormatPackDevelopment2(RepositoryFormatPack):
2320
2401
"""A no-subtrees development repository.