Part of bzrlib
See MutableTree for more details.
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 47 | Function | needs_tree_write_lock | Decorate unbound to take out and release a tree_write lock. |
| 60 | Class | MutableTree | A MutableTree is a specialisation of Tree which is able to be mutated. |
| 491 | Class | MutableTreeHooks | A dictionary mapping a hook name to a list of callables for mutabletree |
| 509 | Class | _FastPath | A path object with fast accessors for things like basename. |
| 529 | Function | _add_one_and_parent | Add a new entry to the inventory and automatically add unversioned parents. |
| 562 | Function | _add_one | Add a new entry to the inventory. |
| Parameters | inv | Inventory which will receive the new entry. |
| parent_ie | Parent inventory entry if known, or None. If None, the parent is looked up by name and used if present, otherwise it is recursively added. | |
| kind | Kind of new entry (file, directory, etc) | |
| action | callback(inv, parent_ie, path, kind); return ignored. | |
| Returns | A list of paths which have been added. | |
| Parameters | inv | Inventory which will receive the new entry. |
| parent_ie | Parent inventory entry. | |
| kind | Kind of new entry (file, directory, etc) | |
| file_id_callback | callback(inv, parent_ie, path, kind); return a file_id or None to generate a new file id | |
| Returns | None | |