b.k.KnitContent(object) : class documentation

Part of bzrlib.knit View In Hierarchy

Known subclasses: bzrlib.knit.AnnotatedKnitContent, bzrlib.knit.PlainKnitContent

Content of a knit version to which deltas can be applied.

This is always stored in memory as a list of lines with n at the end, plus a flag saying if the final ending is really there or not, because that corresponds to the on-disk knit representation.

Method __init__ Undocumented
Method apply_delta Apply delta to this object to become new_version_id.
Method line_delta_iter Generate line-based delta from this content to new_lines.
Method line_delta Undocumented
Static Method get_line_delta_blocks Extract SequenceMatcher.get_matching_blocks() from a knit delta
def __init__(self):
Undocumented
def apply_delta(self, delta, new_version_id):
Apply delta to this object to become new_version_id.
def line_delta_iter(self, new_lines):
Generate line-based delta from this content to new_lines.
def line_delta(self, new_lines):
Undocumented
@staticmethod
def get_line_delta_blocks(knit_delta, source, target):
Extract SequenceMatcher.get_matching_blocks() from a knit delta
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.