b.f.ForeignVcs(object) : class documentation

Part of bzrlib.foreign View In Hierarchy

Known subclasses: bzrlib.tests.test_foreign.DummyForeignVcs

A foreign version control system.
Method __init__ Create a new foreign vcs instance.
Method show_foreign_revid Prepare a foreign revision id for formatting using bzr log.
Method serialize_foreign_revid Serialize a foreign revision id for this VCS.
def __init__(self, mapping_registry, abbreviation=None):
Create a new foreign vcs instance.
Parametersmapping_registryRegistry with mappings for this VCS.
abbreviationOptional abbreviation ('bzr', 'svn', 'git', etc)
def show_foreign_revid(self, foreign_revid):
Prepare a foreign revision id for formatting using bzr log.
Parametersforeign_revidForeign revision id.
ReturnsDictionary mapping string keys to string values.
def serialize_foreign_revid(self, foreign_revid):
Serialize a foreign revision id for this VCS.
Parametersforeign_revidForeign revision id
ReturnsBytestring with serialized revid, will not contain any newlines.
API Documentation for Bazaar, generated by pydoctor at 2020-08-07 00:56:42.