b.inventory : module documentation

Part of bzrlib

No module docstring
Class InventoryEntry Description of a versioned file.
Class InventoryDirectory A directory in an inventory.
Class InventoryFile A file in an inventory.
Class InventoryLink A file in an inventory.
Class TreeReference No class docstring; 2/5 methods documented
Class CommonInventory Basic inventory logic, defined in terms of primitives like has_id.
Class Inventory Mutable dict based in-memory inventory.
Class CHKInventory An inventory persisted in a CHK store.
Class CHKInventoryDirectory A directory in an inventory.
Function make_entry Create an inventory entry.
Function ensure_normalized_name Normalize name.
Function is_valid_name Undocumented
Function mutable_inventory_from_tree Create a new inventory that has the same contents as a specified tree.
Function _check_delta_unique_ids Decorate a delta and check that the file ids in it are unique.
Function _check_delta_unique_new_paths Decorate a delta and check that the new paths in it are unique.
Function _check_delta_unique_old_paths Decorate a delta and check that the old paths in it are unique.
Function _check_delta_ids_are_valid Decorate a delta and check that the ids in it are valid.
Function _check_delta_ids_match_entry Decorate a delta and check that the ids in it match the entry.file_id.
Function _check_delta_new_path_entry_both_or_None Decorate a delta and check that the new_path and entry are paired.
def make_entry(kind, name, parent_id, file_id=None):
Create an inventory entry.
Parameterskindthe type of inventory entry to create.
namethe basename of the entry.
parent_idthe parent_id of the entry.
file_idthe file_id to use. if None, one will be created.
def ensure_normalized_name(name):
Normalize name.
ReturnsThe NFC normalised version of name.
RaisesInvalidNormalizationWhen name is not normalized, and cannot be accessed on this platform by the normalized path.
def is_valid_name(name):
Undocumented
def _check_delta_unique_ids(delta):
Decorate a delta and check that the file ids in it are unique.
ReturnsA generator over delta.
def _check_delta_unique_new_paths(delta):
Decorate a delta and check that the new paths in it are unique.
ReturnsA generator over delta.
def _check_delta_unique_old_paths(delta):
Decorate a delta and check that the old paths in it are unique.
ReturnsA generator over delta.
def _check_delta_ids_are_valid(delta):
Decorate a delta and check that the ids in it are valid.
ReturnsA generator over delta.
def _check_delta_ids_match_entry(delta):
Decorate a delta and check that the ids in it match the entry.file_id.
ReturnsA generator over delta.
def _check_delta_new_path_entry_both_or_None(delta):
Decorate a delta and check that the new_path and entry are paired.
ReturnsA generator over delta.
def mutable_inventory_from_tree(tree):
Create a new inventory that has the same contents as a specified tree.
ParameterstreeRevision tree to create inventory from
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.