b.c.ControlComponentFormatRegistry(registry.FormatRegistry) : class documentation

Part of bzrlib.controldir View In Hierarchy

Known subclasses: bzrlib.branch.BranchFormatRegistry

A registry for control components (branch, workingtree, repository).
Method __init__ Create a new Registry.
Method register Register a new format.
Method remove Remove a registered format.
Method register_extra Register a format that can not be used in a metadir.
Method remove_extra Remove an extra format.
Method register_extra_lazy Register a format lazily.
Method _get_extra Return all "extra" formats, not usable in meta directories.
Method _get_all Return all formats, even those not usable in metadirs.
Method _get_all_modules Return a set of the modules providing objects.

Inherited from FormatRegistry:

Method register_lazy Register a new object to be loaded on request.
Method get Return the object register()'ed to the given key.

Inherited from Registry (via FormatRegistry):

Method get_prefix Return an object whose key is a prefix of the supplied value.
Method get_help Get the help text associated with the given key
Method get_info Get the extra information associated with the given key
Method __contains__ Undocumented
Method keys Get a list of registered entries
Method iteritems Undocumented
Method items Undocumented
Method _add_help_and_info Add the help and information about this key
Method _get_module Return the module the object will be or was loaded from.
Method _get_key_or_default Return either 'key' or the default key if key is None
Method _set_default_key Undocumented
Method _get_default_key Undocumented
def __init__(self, other_registry=None):
Create a new Registry.
def register(self, format):
Register a new format.
def remove(self, format):
Remove a registered format.
def register_extra(self, format):
Register a format that can not be used in a metadir.

This is mainly useful to allow custom repository formats, such as older Bazaar formats and foreign formats, to be tested.

def remove_extra(self, format):
Remove an extra format.
def register_extra_lazy(self, module_name, member_name):
Register a format lazily.
def _get_extra(self):
Return all "extra" formats, not usable in meta directories.
def _get_all(self):
Return all formats, even those not usable in metadirs.
def _get_all_modules(self):
Return a set of the modules providing objects.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.