b.weavefile : module documentation

Part of bzrlib

Store and retrieve weaves in files.

There is one format marker followed by a blank line, followed by a series of version headers, followed by the weave itself.

Each version marker has

'i' parent version indexes '1' SHA-1 of text 'n' name

The inclusions do not need to list versions included by a parent.

The weave is bracketed by 'w' and 'W' lines, and includes the '{}[]' processing instructions. Lines of text are prefixed by '.' if the line contains a newline, or ',' if not.

Function write_weave Undocumented
Function write_weave_v5 Write weave to file f.
Function read_weave Undocumented
Function _read_weave_v5 Private helper routine to read a weave format 5 file into memory.
def write_weave(weave, f, format=None):
Undocumented
def write_weave_v5(weave, f):
Write weave to file f.
def read_weave(f):
Undocumented
def _read_weave_v5(f, w):
Private helper routine to read a weave format 5 file into memory.

This is only to be used by read_weave and WeaveFile.__init__.

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.