Part of bzrlib.bzrdir View In Hierarchy
Differs from BzrDirFormat._control_formats in that it provides sub-formats, e.g. BzrDirMeta1 with weave repository. Also, it's more user-oriented.
| Method | __init__ | Create a BzrDirFormatRegistry. |
| Method | aliases | Return a set of the format names which are aliases. |
| Method | register_metadir | Register a metadir subformat. |
| Method | register | Register a BzrDirFormat factory. |
| Method | register_lazy | Register a new object to be loaded on request. |
| Method | set_default | Set the 'default' key to be a clone of the supplied key. |
| Method | set_default_repository | Set the FormatRegistry default and Repository default. |
| Method | make_bzrdir | Undocumented |
| Method | help_topic | Undocumented |
Inherited from Registry:
| Method | get | Return the object register()'ed to the given key. |
| 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 | remove | Remove a registered entry. |
| 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_key_or_default | Return either 'key' or the default key if key is None |
| Method | _set_default_key | Undocumented |
| Method | _get_default_key | Undocumented |
These all use a BzrDirMetaFormat1 bzrdir, but can be parameterized by the Repository/Branch/WorkingTreeformats.
| Parameters | repository_format | The fully-qualified repository format class name as a string. |
| branch_format | Fully-qualified branch format class name as a string. | |
| tree_format | Fully-qualified tree format class name as a string. |
The factory must be a callable that takes one parameter: the key. It must produce an instance of the BzrDirFormat when called.
This function mainly exists to prevent the info object from being supplied directly.
| Parameters | module_name | The python path to the module. Such as 'os.path'. |
| member_name | The member of the module to return. If empty or None, get() will return the module itself. | |
| help | Help text for this entry. This may be a string or a callable. | |
| info | More information for this entry. Registry | |
| override_existing | If True, replace the existing object with the new one. If False, if there is already something registered with the same key, raise a KeyError |
This method must be called once and only once.