b.b.s.v.BundleSerializerV08(BundleSerializer) : class documentation

Part of bzrlib.bundle.serializer.v08 View In Hierarchy

Known subclasses: bzrlib.bundle.serializer.v09.BundleSerializerV09

No class docstring
Method read Read the rest of the bundles from the supplied file.
Method check_compatible Undocumented
Method write Write the bundless to the supplied files.
Method write_bundle Write the bundle to the supplied file.
Method _write_main_header Write the header for the changes
Method _write Write out meta information, with proper indenting, etc.
Method _write_revisions Write the information for all of the revisions.
Method _testament_sha1 Undocumented
Method _write_revision Write out the information for a revision.
Method _write_action Undocumented
Method _write_delta Write out the changes between the trees.

Inherited from BundleSerializer:

Method __init__ Undocumented
Method _write_bundle Helper function for translating write_bundle to write
def read(self, f):
Read the rest of the bundles from the supplied file.
ParametersfThe file to read from
ReturnsA list of bundles
def check_compatible(self):
Undocumented
def write(self, source, revision_ids, forced_bases, f):
Write the bundless to the supplied files.
ParameterssourceA source for revision information
revision_idsThe list of revision ids to serialize
forced_basesA dict of revision -> base that overrides default
fThe file to output to
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_main_header(self):
Write the header for the changes
def _write(self, key, value, indent=1, trailing_space_when_empty=False):
Write out meta information, with proper indenting, etc.

        :param trailing_space_when_empty: To work around a bug in earlier
            bundle readers, when writing an empty property, we use "prop: 
"
            rather than writing "prop:
".
            If this parameter is True, and value is the empty string, we will
            write an extra space.
        
def _write_revisions(self, pb):
Write the information for all of the revisions.
def _testament_sha1(self, revision_id):
Undocumented
def _write_revision(self, rev, rev_tree, base_rev, base_tree, explicit_base, force_binary):
Write out the information for a revision.
def _write_action(self, name, parameters, properties=None):
Undocumented
def _write_delta(self, new_tree, old_tree, default_revision_id, force_binary):
Write out the changes between the trees.
API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.