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
apply_inventory_Inventory(self, basis, delta, invalid_delta=True):

Apply delta to basis and return the result.

Parameters | basis | An inventory to be used as the basis. |

delta | The inventory delta to apply: | |

Returns | An 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.

Parameters | basis | An inventory to be used as the basis. |

delta | The inventory delta to apply: | |

Returns | An inventory resulting from the application. |

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.

Parameters | basis | An inventory to be used as the basis. |

delta | The inventory delta to apply: | |

Returns | An 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.

Parameters | basis | An inventory to be used as the basis. |

delta | The inventory delta to apply: | |

Returns | An inventory resulting from the application. |