b.k.KnitAnnotateFactory(_KnitFactory) : class documentation

Part of bzrlib.knit View In Hierarchy

Factory for creating annotated Content objects.
Method make Undocumented
Method parse_fulltext Convert fulltext to internal representation
Method parse_line_delta_iter Undocumented
Method parse_line_delta Convert a line based delta into internal representation.
Method get_fulltext_content Extract just the content lines from a fulltext.
Method get_linedelta_content Extract just the content from a line delta.
Method lower_fulltext convert a fulltext content record into a serializable form.
Method lower_line_delta convert a delta into a serializable form.
Method annotate Undocumented

Inherited from _KnitFactory:

Method parse_record Parse a record into a full content object.
def make(self, lines, version_id):
Undocumented
def parse_fulltext(self, content, version_id):
Convert fulltext to internal representation

fulltext content is of the format revid(utf8) plaintext

internal representation is of the format: (revid, plaintext)

def parse_line_delta_iter(self, lines):
Undocumented
def parse_line_delta(self, lines, version_id, plain=False):
Convert a line based delta into internal representation.

line delta is in the form of: intstart intend intcount 1..count lines: revid(utf8) newline

internal representation is (start, end, count, [1..count tuples (revid, newline)])

ParametersplainIf True, the lines are returned as a plain list without annotations, not as a list of (origin, content) tuples, i.e. (start, end, count, [1..count newline])
def get_fulltext_content(self, lines):
Extract just the content lines from a fulltext.
def get_linedelta_content(self, lines):
Extract just the content from a line delta.

This doesn't return all of the extra information stored in a delta. Only the actual content lines.

def lower_fulltext(self, content):
convert a fulltext content record into a serializable form.

see parse_fulltext which this inverts.

def lower_line_delta(self, delta):
convert a delta into a serializable form.

See parse_line_delta which this inverts.

def annotate(self, knit, key):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-10-20 00:34:54.