1870
1871
def get_format_description(self):
1871
1872
"""See RepositoryFormat.get_format_description()."""
1872
1873
return "Packs containing knits with subtree support\n"
1876
class RepositoryFormatKnitPack4(RepositoryFormatPack):
1877
"""A rich-root, no subtrees parameterised Pack repository.
1879
This repository format uses the xml7 serializer to get:
1880
- support for recording full info about the tree root
1881
- support for recording tree-references
1883
This format was introduced in 0.92.
1886
repository_class = KnitPackRepository
1887
_commit_builder_class = PackRootCommitBuilder
1888
rich_root_data = True
1889
supports_tree_reference = False
1890
_serializer = xml6.serializer_v6
1892
def _get_matching_bzrdir(self):
1893
return bzrdir.format_registry.make_bzrdir(
1896
def _ignore_setting_bzrdir(self, format):
1899
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
1901
def check_conversion_target(self, target_format):
1902
if not target_format.rich_root_data:
1903
raise errors.BadConversionTarget(
1904
'Does not support rich root data.', target_format)
1906
def get_format_string(self):
1907
"""See RepositoryFormat.get_format_string()."""
1908
return ("Bazaar pack repository format 1 with rich root"
1909
" (needs bzr 1.0)\n")
1911
def get_format_description(self):
1912
"""See RepositoryFormat.get_format_description()."""
1913
return "Packs containing knits with rich root support\n"