b.t.t.DummyForeignVcs(foreign.ForeignVcs) : class documentation

Part of bzrlib.tests.test_foreign View In Hierarchy

A dummy Foreign VCS, for use with testing.

It has revision ids that are a tuple with three strings.

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):
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 2019-12-09 00:38:27.