b.m.MultiParent(object) : class documentation

Part of bzrlib.multiparent View In Hierarchy

A multi-parent diff
Method __init__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Static Method from_lines Produce a MultiParent from a list of lines and parents
Method get_matching_blocks Undocumented
Method to_lines Contruct a fulltext from this diff and its parents
Class Method from_texts Produce a MultiParent from a text and list of parent text
Method to_patch Yield text lines for a patch
Method patch_len Undocumented
Method zipped_patch_len Undocumented
Class Method from_patch Create a MultiParent from its string form
Method range_iterator Iterate through the hunks, with range indicated
Method num_lines The number of lines in the output text
Method is_snapshot Return true of this hunk is effectively a fulltext
Static Method _from_patch This is private because it is essential to split lines on
def __init__(self, hunks=None):
Undocumented
def __repr__(self):
Undocumented
def __eq__(self, other):
Undocumented
@staticmethod
def from_lines(text, parents=(), left_blocks=None):
Produce a MultiParent from a list of lines and parents
def get_matching_blocks(self, parent, parent_len):
Undocumented
def to_lines(self, parents=()):
Contruct a fulltext from this diff and its parents
@classmethod
def from_texts(cls, text, parents=()):
Produce a MultiParent from a text and list of parent text
def to_patch(self):
Yield text lines for a patch
def patch_len(self):
Undocumented
def zipped_patch_len(self):
Undocumented
@classmethod
def from_patch(cls, text):
Create a MultiParent from its string form
@staticmethod
def _from_patch(lines):
This is private because it is essential to split lines on only
def range_iterator(self):
Iterate through the hunks, with range indicated

kind is "new" or "parent". for "new", data is a list of lines. for "parent", data is (parent, parent_start, parent_end) :return: a generator of (start, end, kind, data)

def num_lines(self):
The number of lines in the output text
def is_snapshot(self):
Return true of this hunk is effectively a fulltext
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.