2124
2124
return "Packs 5 rich-root (adds stacking support, requires bzr 1.6)"
2127
class RepositoryFormatPackDevelopment0(RepositoryFormatPack):
2128
"""A no-subtrees development repository.
2130
This format should be retained until the second release after bzr 1.0.
2132
No changes to the disk behaviour from pack-0.92.
2135
repository_class = KnitPackRepository
2136
_commit_builder_class = PackCommitBuilder
2137
_serializer = xml5.serializer_v5
2139
def _get_matching_bzrdir(self):
2140
return bzrdir.format_registry.make_bzrdir('development0')
2142
def _ignore_setting_bzrdir(self, format):
2145
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2147
def get_format_string(self):
2148
"""See RepositoryFormat.get_format_string()."""
2149
return "Bazaar development format 0 (needs bzr.dev from before 1.3)\n"
2151
def get_format_description(self):
2152
"""See RepositoryFormat.get_format_description()."""
2153
return ("Development repository format, currently the same as "
2156
def check_conversion_target(self, target_format):
2160
class RepositoryFormatPackDevelopment0Subtree(RepositoryFormatPack):
2161
"""A subtrees development repository.
2163
This format should be retained until the second release after bzr 1.0.
2165
No changes to the disk behaviour from pack-0.92-subtree.
2168
repository_class = KnitPackRepository
2169
_commit_builder_class = PackRootCommitBuilder
2170
rich_root_data = True
2171
supports_tree_reference = True
2172
_serializer = xml7.serializer_v7
2174
def _get_matching_bzrdir(self):
2175
return bzrdir.format_registry.make_bzrdir(
2176
'development0-subtree')
2178
def _ignore_setting_bzrdir(self, format):
2181
_matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2183
def check_conversion_target(self, target_format):
2184
if not target_format.rich_root_data:
2185
raise errors.BadConversionTarget(
2186
'Does not support rich root data.', target_format)
2187
if not getattr(target_format, 'supports_tree_reference', False):
2188
raise errors.BadConversionTarget(
2189
'Does not support nested trees', target_format)
2191
def get_format_string(self):
2192
"""See RepositoryFormat.get_format_string()."""
2193
return ("Bazaar development format 0 with subtree support "
2194
"(needs bzr.dev from before 1.3)\n")
2196
def get_format_description(self):
2197
"""See RepositoryFormat.get_format_description()."""
2198
return ("Development repository format, currently the same as "
2199
"pack-0.92-subtree\n")
2202
class RepositoryFormatPackDevelopment1(RepositoryFormatPackDevelopment0):
2127
class RepositoryFormatPackDevelopment1(RepositoryFormatPack):
2203
2128
"""A no-subtrees development repository.
2205
2130
This format should be retained until the second release after bzr 1.5.