Part of bzrlib.bundle.serializer.v4 View In Hierarchy
This serves roughly the same purpose as ContainerReader, but acts as a layer on top of it.
Provides ways of writing the specific record types supported this bundle format.
Method | __init__ | Undocumented |
Method | begin | Start writing the bundle |
Method | end | Finish writing the bundle |
Method | add_multiparent_record | Add a record for a multi-parent diff |
Method | add_fulltext_record | Add a record for a fulltext |
Method | add_info_record | Add an info record to the bundle |
Static Method | encode_name | Encode semantic ids as a container name |
Method | _write_encoded | Write bzip2-encoded bytes to the file |
Method | _add_record | Add a bundle record to the container. |
Unknown Field: mp_bytes | A multi-parent diff, as a bytestring | |
Unknown Field: sha1 | The sha1 hash of the fulltext | |
Unknown Field: parents | a list of revision-ids of the parents | |
Unknown Field: repo_kind | The kind of object in the repository. May be 'file' or 'inventory' | |
Unknown Field: revision_id | The revision id of the mpdiff being added. | |
Unknown Field: file_id | The file-id of the file, or None for inventories. |
Unknown Field: bytes | The fulltext, as a bytestring | |
Unknown Field: parents | a list of revision-ids of the parents | |
Unknown Field: repo_kind | The kind of object in the repository. May be 'revision' or 'signature' | |
Unknown Field: revision_id | The revision id of the fulltext being added. |
Any parameters may be supplied, except 'self' and 'storage_kind'. Values must be lists, strings, integers, dicts, or a combination.