~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1278
1278
        klass._formats[format.get_format_string()] = format
1279
1279
 
1280
1280
    @classmethod
 
1281
    @deprecated_method(symbol_versioning.zero_fourteen)
1281
1282
    def set_default_format(klass, format):
 
1283
        klass._set_default_format(format)
 
1284
 
 
1285
    @classmethod
 
1286
    def _set_default_format(klass, format):
1282
1287
        klass._default_format = format
1283
1288
 
1284
1289
    @classmethod
1800
1805
# formats which have no format string are not discoverable
1801
1806
# and not independently creatable, so are not registered.
1802
1807
RepositoryFormat.register_format(RepositoryFormat7())
 
1808
# KEEP in sync with bzrdir.format_registry default
1803
1809
_default_format = RepositoryFormatKnit1()
1804
1810
RepositoryFormat.register_format(_default_format)
1805
1811
RepositoryFormat.register_format(RepositoryFormatKnit2())
1806
 
RepositoryFormat.set_default_format(_default_format)
 
1812
RepositoryFormat._set_default_format(_default_format)
1807
1813
_legacy_formats = [RepositoryFormat4(),
1808
1814
                   RepositoryFormat5(),
1809
1815
                   RepositoryFormat6()]