3218
3218
return self.get_format_string()
3221
# Pre-0.8 formats that don't have a disk format string (because they are
3222
# versioned by the matching control directory). We use the control directories
3223
# disk format string as a key for the network_name because they meet the
3224
# constraints (simple string, unique, immutable).
3225
network_format_registry.register_lazy(
3226
"Bazaar-NG branch, format 5\n",
3227
'bzrlib.repofmt.weaverepo',
3228
'RepositoryFormat5',
3230
network_format_registry.register_lazy(
3231
"Bazaar-NG branch, format 6\n",
3232
'bzrlib.repofmt.weaverepo',
3233
'RepositoryFormat6',
3236
format_registry.register_extra_lazy(
3237
'bzrlib.repofmt.weaverepo',
3238
'RepositoryFormat4')
3239
format_registry.register_extra_lazy(
3240
'bzrlib.repofmt.weaverepo',
3241
'RepositoryFormat5')
3242
format_registry.register_extra_lazy(
3243
'bzrlib.repofmt.weaverepo',
3244
'RepositoryFormat6')
3246
3221
# formats which have no format string are not discoverable or independently
3247
3222
# creatable on disk, so are not registered in format_registry. They're
3248
# all in bzrlib.repofmt.weaverepo now. When an instance of one of these is
3223
# all in bzrlib.repofmt.knitreponow. When an instance of one of these is
3249
3224
# needed, it's constructed directly by the BzrDir. Non-native formats where
3250
3225
# the repository is not separately opened are similar.
3252
3227
format_registry.register_lazy(
3253
'Bazaar-NG Repository format 7',
3254
'bzrlib.repofmt.weaverepo',
3258
format_registry.register_lazy(
3259
3228
'Bazaar-NG Knit Repository Format 1',
3260
3229
'bzrlib.repofmt.knitrepo',
3261
3230
'RepositoryFormatKnit1',