b.versionedfile : module documentation

Part of bzrlib

Versioned text file storage api.
Class ContentFactory Abstract interface for insertion and retrieval from a VersionedFile.
Class ChunkedContentFactory Static data content factory.
Class FulltextContentFactory Static data content factory.
Class AbsentContentFactory A placeholder content factory for unavailable texts.
Class AdapterFactory A content factory to adapt between key prefix's.
Function filter_absent Adapt a record stream to remove absent records.
Class VersionedFile Versioned text file storage.
Class RecordingVersionedFilesDecorator A minimal versioned files that records calls made on it.
Class OrderingVersionedFilesDecorator A VF that records calls, and returns keys in specific order.
Class KeyMapper KeyMappers map between keys and underlying partitioned storage.
Class ConstantMapper A key mapper that maps to a constant result.
Class URLEscapeMapper Base class for use with transport backed storage.
Class PrefixMapper A key mapper that extracts the first component of a key.
Class HashPrefixMapper A key mapper that combines the first component of a key with a hash.
Class HashEscapedPrefixMapper Combines the escaped first component of a key with a hash.
Function make_versioned_files_factory Create a ThunkedVersionedFiles factory.
Class VersionedFiles Storage for many versioned files.
Class ThunkedVersionedFiles Storage for many versioned files thunked onto a 'VersionedFile' class.
Class VersionedFilesWithFallbacks No class docstring; 3/3 methods documented
Class PlanWeaveMerge Weave merge that takes a plan as its input.
Class WeaveMerge Weave merge that takes a VersionedFile and two versions as its input.
Class VirtualVersionedFiles Dummy implementation for VersionedFiles that uses other functions for
Class NoDupeAddLinesDecorator Decorator for a VersionedFiles that skips doing an add_lines if the key
Function network_bytes_to_kind_and_offset Strip of a record kind from the front of network_bytes.
Class NetworkRecordStream A record_stream which reconstitures a serialised stream.
Function fulltext_network_to_record Convert a network fulltext record to record.
Function record_to_fulltext_bytes Undocumented
Function sort_groupcompress Sort and group the keys in parent_map into groupcompress order.
Class _MPDiffGenerator Pull out the functionality for generating mp_diffs.
Class _PlanMergeVersionedFile A VersionedFile for uncommitted and committed texts.
Function _length_prefix Undocumented
Class _KeyRefs Undocumented
def filter_absent(record_stream):
Adapt a record stream to remove absent records.
def make_versioned_files_factory(versioned_file_factory, mapper):
Create a ThunkedVersionedFiles factory.

This will create a callable which when called creates a ThunkedVersionedFiles on a transport, using mapper to access individual versioned files, and versioned_file_factory to create each individual file.

def network_bytes_to_kind_and_offset(network_bytes):
Strip of a record kind from the front of network_bytes.
Parametersnetwork_bytesThe bytes of a record.
ReturnsA tuple (storage_kind, offset_of_remaining_bytes)
def fulltext_network_to_record(kind, bytes, line_end):
Convert a network fulltext record to record.
def _length_prefix(bytes):
Undocumented
def record_to_fulltext_bytes(record):
Undocumented
def sort_groupcompress(parent_map):
Sort and group the keys in parent_map into groupcompress order.

groupcompress is defined (currently) as reverse-topological order, grouped by the key prefix.

ReturnsA sorted-list of keys
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.