b.v._VersionedFileChecker(object) : class documentation

Part of bzrlib.vf_repository View In Hierarchy

No class docstring
Method __init__ Undocumented
Method calculate_file_version_parents Calculate the correct parents for a file version according to
Method check_file_version_parents Check the parents stored in a versioned file are correct.
Method _check_file_version_parents See check_file_version_parents.
def __init__(self, repository, text_key_references=None, ancestors=None):
Undocumented
def calculate_file_version_parents(self, text_key):
Calculate the correct parents for a file version according to the inventories.
def check_file_version_parents(self, texts, progress_bar=None):
Check the parents stored in a versioned file are correct.

It also detects file versions that are not referenced by their corresponding revision's inventory.

ReturnsA tuple of (wrong_parents, dangling_file_versions). wrong_parents is a dict mapping {revision_id: (stored_parents, correct_parents)} for each revision_id where the stored parents are not correct. dangling_file_versions is a set of (file_id, revision_id) tuples for versions that are present in this versioned file, but not used by the corresponding inventory.
def _check_file_version_parents(self, texts, progress_bar):
See check_file_version_parents.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.