b.b.s.BundleSerializer(object) : class documentation

Part of bzrlib.bundle.serializer View In Hierarchy

Known subclasses: bzrlib.bundle.serializer.v08.BundleSerializerV08, bzrlib.bundle.serializer.v4.BundleSerializerV4

The base class for Serializers.

Common functionality should be included here.

Method __init__ Undocumented
Method read Read the rest of the bundles from the supplied file.
Method write_bundle Write the bundle to the supplied file.
Method _write_bundle Helper function for translating write_bundle to write
def __init__(self, version):
Undocumented
def read(self, f):
Read the rest of the bundles from the supplied file.
ParametersfThe file to read from
ReturnsA list of bundle trees
def write_bundle(self, repository, target, base, fileobj):
Write the bundle to the supplied file.
ParametersrepositoryThe repository to retrieve revision data from
targetThe revision to provide data for
baseThe most recent of ancestor of the revision that does not need to be included in the bundle
fileobjThe file to output to
def _write_bundle(self, repository, revision_id, base_revision_id, out):
Helper function for translating write_bundle to write
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.