b.f.VcsMapping(object) : class documentation

Part of bzrlib.foreign View In Hierarchy

Known subclasses: bzrlib.tests.test_foreign.DummyForeignVcsMapping

Describes the mapping between the semantics of Bazaar and a foreign VCS.
Method __init__ Create a new VcsMapping.
Method revision_id_bzr_to_foreign Parse a bzr revision id and convert it to a foreign revid.
Method revision_id_foreign_to_bzr Parse a foreign revision id and convert it to a bzr revid.
def __init__(self, vcs):
Create a new VcsMapping.
ParametersvcsVCS that this mapping maps to Bazaar
def revision_id_bzr_to_foreign(self, bzr_revid):
Parse a bzr revision id and convert it to a foreign revid.
Parametersbzr_revidThe bzr revision id (a string).
ReturnsA foreign revision id, can be any sort of object.
def revision_id_foreign_to_bzr(self, foreign_revid):
Parse a foreign revision id and convert it to a bzr revid.
Parametersforeign_revidForeign revision id, can be any sort of object.
ReturnsA bzr revision id.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.