b.v._MPDiffGenerator(object) : class documentation

Part of bzrlib.versionedfile View In Hierarchy

Known subclasses: bzrlib.bundle.serializer.v4._MPDiffInventoryGenerator

Pull out the functionality for generating mp_diffs.
Method __init__ Undocumented
Method compute_diffs Undocumented
Method _find_needed_keys Find the set of keys we need to request.
Method _compute_diff Compute a single mp_diff, and store it in self._diffs
Method _process_one_record Undocumented
Method _extract_diffs Undocumented
def __init__(self, vf, keys):
Undocumented
def _find_needed_keys(self):
Find the set of keys we need to request.

This includes all the original keys passed in, and the non-ghost
parents of those keys.

:return: (needed_keys, refcounts)
    needed_keys is the set of all texts we need to extract
    refcounts is a dict of {key: num_children} letting us know when we
        no longer need to cache a given parent text
def _compute_diff(self, key, parent_lines, lines):
Compute a single mp_diff, and store it in self._diffs
def _process_one_record(self, key, this_chunks):
Undocumented
def _extract_diffs(self):
Undocumented
def compute_diffs(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.