b.b.s.v.BundleWriteOperation(object) : class documentation

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

Perform the operation of writing revisions to a bundle
Class Method from_old_args Create a BundleWriteOperation from old-style arguments
Method __init__ Undocumented
Method do_write Write all data to the bundle
Method write_info Write format info
Method write_files Write bundle records for all revisions of all files
Method write_revisions Write bundle records for all revisions and signatures
Static Method get_base_target Determine the base and target from old-style revision ids
Method _add_inventory_mpdiffs_from_serializer Generate mpdiffs by serializing inventories.
Method _add_revision_texts Undocumented
Method _add_mp_records_keys Add multi-parent diff records to a bundle
@classmethod
def from_old_args(cls, repository, revision_ids, forced_bases, fileobj):
Create a BundleWriteOperation from old-style arguments
def __init__(self, base, target, repository, fileobj, revision_ids=None):
Undocumented
def do_write(self):
Write all data to the bundle
def write_info(self):
Write format info
def write_files(self):
Write bundle records for all revisions of all files
def write_revisions(self):
Write bundle records for all revisions and signatures
def _add_inventory_mpdiffs_from_serializer(self, revision_order):
Generate mpdiffs by serializing inventories.

The current repository only has part of the tree shape information in the 'inventories' vf. So we use serializer.write_inventory_to_string to get a 'full' representation of the tree shape, and then generate mpdiffs on that data stream. This stream can then be reconstructed on the other side.

def _add_revision_texts(self, revision_order):
Undocumented
@staticmethod
def get_base_target(revision_ids, forced_bases, repository):
Determine the base and target from old-style revision ids
def _add_mp_records_keys(self, repo_kind, vf, keys):
Add multi-parent diff records to a bundle
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.