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

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

Known subclasses: bzrlib.bundle.serializer.v09.BundleReaderV09

This class reads in a bundle from a file, and returns a Bundle object, which can then be applied against a tree.
Method __init__ Read in the bundle from the file.
Method _get_info Undocumented
Method _read Undocumented
Method _validate Make sure that the information read in makes sense
Method _next yield the next line, but secretly
Method _read_revision_header Undocumented
Method _read_next_entry Read in a key-value pair
Method _handle_next Undocumented
Method _read_many If a line ends with no entry, that means that it should be
Method _read_one_patch Read in one patch, return the complete patch, along with
Method _read_patches Undocumented
Method _read_footer Read the rest of the meta information.
def __init__(self, from_file):
Read in the bundle from the file.
Parametersfrom_fileA file-like object (must have iterator support).
def _get_info(self):
Undocumented
def _read(self):
Undocumented
def _validate(self):
Make sure that the information read in makes sense and passes appropriate checksums.
def _next(self):
yield the next line, but secretly keep 1 extra line for peeking.
def _read_revision_header(self):
Undocumented
def _read_next_entry(self, line, indent=1):
Read in a key-value pair
def _handle_next(self, line):
Undocumented
def _read_many(self, indent):
If a line ends with no entry, that means that it should be followed with multiple lines of values.

This detects the end of the list, because it will be a line that does not start properly indented.

def _read_one_patch(self):
Read in one patch, return the complete patch, along with the next line.
Returnsaction, lines, do_continue
def _read_patches(self):
Undocumented
def _read_footer(self):
Read the rest of the meta information.
Parametersfirst_lineThe previous step iterates past what it can handle. That extra line is given here.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.