b.t.test_inv : module documentation

Part of bzrlib.tests

No module docstring
Function delta_application_scenarios Undocumented
Function create_texts_for_inv Undocumented
Function apply_inventory_Inventory Apply delta to basis and return the result.
Function apply_inventory_WT Apply delta to basis and return the result.
Function apply_inventory_WT_basis Apply delta to basis and return the result.
Function apply_inventory_Repository_add_inventory_by_delta Apply delta to basis and return the result.
Class TestInventoryUpdates No class docstring; 3/9 methods documented
Class TestDeltaApplication No class docstring; 3/27 methods documented
Class TestInventoryEntry Undocumented
Class TestDescribeChanges Undocumented
Class TestCHKInventory Undocumented
Class TestCHKInventoryExpand Undocumented
Class TestMutableInventoryFromTree Undocumented
Function _create_repo_revisions Undocumented
Function _get_basis_entries Undocumented
Function _populate_different_tree Put all entries into tree, but at a unique location.
def delta_application_scenarios():
Undocumented
def create_texts_for_inv(repo, inv):
Undocumented
def apply_inventory_Inventory(self, basis, delta, invalid_delta=True):
Apply delta to basis and return the result.
ParametersbasisAn inventory to be used as the basis.
deltaThe inventory delta to apply:
ReturnsAn inventory resulting from the application.
def apply_inventory_WT(self, basis, delta, invalid_delta=True):
Apply delta to basis and return the result.

This sets the tree state to be basis, and then calls apply_inventory_delta.

ParametersbasisAn inventory to be used as the basis.
deltaThe inventory delta to apply:
ReturnsAn inventory resulting from the application.
def _create_repo_revisions(repo, basis, delta, invalid_delta):
Undocumented
def _get_basis_entries(tree):
Undocumented
def _populate_different_tree(tree, basis, delta):
Put all entries into tree, but at a unique location.
def apply_inventory_WT_basis(test, basis, delta, invalid_delta=True):
Apply delta to basis and return the result.

This sets the parent and then calls update_basis_by_delta. It also puts the basis in the repository under both 'basis' and 'result' to allow safety checks made by the WT to succeed, and finally ensures that all items in the delta with a new path are present in the WT before calling update_basis_by_delta.

ParametersbasisAn inventory to be used as the basis.
deltaThe inventory delta to apply:
ReturnsAn inventory resulting from the application.
def apply_inventory_Repository_add_inventory_by_delta(self, basis, delta, invalid_delta=True):
Apply delta to basis and return the result.

This inserts basis as a whole inventory and then uses add_inventory_by_delta to add delta.

ParametersbasisAn inventory to be used as the basis.
deltaThe inventory delta to apply:
ReturnsAn inventory resulting from the application.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.