3078
3078
def __ne__(self, other):
3079
3079
return not (self == other)
3082
@symbol_versioning.deprecated_method(
3083
symbol_versioning.deprecated_in((2, 4, 0)))
3084
def get_default_format(klass):
3085
"""Return the current default format."""
3086
return format_registry.get_default()
3088
3081
def get_format_description(self):
3089
3082
"""Return the short description for this format."""
3090
3083
raise NotImplementedError(self.get_format_description)
3106
3099
"""True if this format supports stored views."""
3110
@symbol_versioning.deprecated_method(
3111
symbol_versioning.deprecated_in((2, 4, 0)))
3112
def register_format(klass, format):
3113
format_registry.register(format)
3116
@symbol_versioning.deprecated_method(
3117
symbol_versioning.deprecated_in((2, 4, 0)))
3118
def register_extra_format(klass, format):
3119
format_registry.register_extra(format)
3122
@symbol_versioning.deprecated_method(
3123
symbol_versioning.deprecated_in((2, 4, 0)))
3124
def unregister_extra_format(klass, format):
3125
format_registry.unregister_extra(format)
3128
@symbol_versioning.deprecated_method(
3129
symbol_versioning.deprecated_in((2, 4, 0)))
3130
def get_formats(klass):
3131
return format_registry._get_all()
3134
@symbol_versioning.deprecated_method(
3135
symbol_versioning.deprecated_in((2, 4, 0)))
3136
def set_default_format(klass, format):
3137
format_registry.set_default(format)
3140
@symbol_versioning.deprecated_method(
3141
symbol_versioning.deprecated_in((2, 4, 0)))
3142
def unregister_format(klass, format):
3143
format_registry.remove(format)
3145
3102
def get_controldir_for_branch(self):
3146
3103
"""Get the control directory format for creating branches.