b.f.VcsMappingRegistry(registry.Registry) : class documentation

Part of bzrlib.foreign View In Hierarchy

Known subclasses: bzrlib.tests.test_foreign.DummyForeignVcsMappingRegistry

Registry for Bazaar<->foreign VCS mappings.

There should be one instance of this registry for every foreign VCS.

Method register Register a mapping between Bazaar and foreign VCS semantics.
Method set_default Set the 'default' key to be a clone of the supplied key.
Method get_default Convenience function for obtaining the default mapping to use.
Method revision_id_bzr_to_foreign Convert a bzr revision id to a foreign revid.
def register(self, key, factory, help):
Register a mapping between Bazaar and foreign VCS semantics.

The factory must be a callable that takes one parameter: the key. It must produce an instance of VcsMapping when called.

def set_default(self, key):
Set the 'default' key to be a clone of the supplied key.

This method must be called once and only once.

def get_default(self):
Convenience function for obtaining the default mapping to use.
def revision_id_bzr_to_foreign(self, revid):
Convert a bzr revision id to a foreign revid.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.