Part of bzrlib
| Function | unique_add | Undocumented |
| Class | TreeTransformBase | The base class for TreeTransform and its kin. |
| Class | DiskTreeTransform | Tree transform storing its contents on disk. |
| Class | OrphaningError | Undocumented |
| Class | OrphaningForbidden | Undocumented |
| Function | move_orphan | See TreeTransformBase.new_orphan. |
| Function | refuse_orphan | See TreeTransformBase.new_orphan. |
| Class | TreeTransform | Represent a tree transformation. |
| Class | TransformPreview | A TreeTransform for generating preview trees. |
| Function | joinpath | Join tree-relative paths, handling the tree root specially |
| Class | FinalPaths | Make path calculation cheap by memoizing paths. |
| Function | topology_sorted_ids | Determine the topological order of the ids in a tree |
| Function | build_tree | Create working tree for a branch, using a TreeTransform. |
| Function | resolve_checkout | Undocumented |
| Function | new_by_entry | Create a new file according to its inventory entry |
| Function | create_from_tree | Create new file contents according to tree contents. |
| Function | create_entry_executability | Set the executability of a trans_id according to an inventory entry |
| Function | get_backup_name | Undocumented |
| Function | revert | Revert a working tree's contents to those of a target tree. |
| Function | resolve_conflicts | Make many conflict-resolution attempts, but die if they fail |
| Function | conflict_pass | Resolve some classes of conflicts. |
| Function | cook_conflicts | Generate a list of cooked conflicts, sorted by file path |
| Function | iter_cook_conflicts | Undocumented |
| Class | _TransformResults | Undocumented |
| Class | _PreviewTree | Partial implementation of Tree to support show_diff_trees |
| Function | _build_tree | See build_tree. |
| Function | _create_files | Undocumented |
| Function | _reparent_children | Undocumented |
| Function | _reparent_transform_children | Undocumented |
| Function | _content_match | Undocumented |
| Function | _get_backup_name | Produce a backup-style name that appears to be available |
| Function | _prepare_revert_transform | Undocumented |
| Function | _alter_files | Undocumented |
| Class | _FileMover | Moves and deletes files for TreeTransform, tracking operations |
This creates a new orphan in the bzr-orphans dir at the root of the
TreeTransform.
| Parameters | tt | The TreeTransform orphaning trans_id. |
| orphan_id | The trans id that should be orphaned. | |
| parent_id | The orphan parent trans id. |
This refuses to create orphan, letting the caller handle the conflict.
Create working tree for a branch, using a TreeTransform.
This function should be used on empty trees, having a tree root at most. (see merge and revert functionality for working with existing trees)
Existing files are handled like so:
| Parameters | tree | The tree to convert wt into a copy of |
| wt | The working tree that files will be placed into | |
| accelerator_tree | A tree which can be used for retrieving file contents more quickly than tree itself, i.e. a workingtree. tree will be used for cases where accelerator_tree's content is different. | |
| hardlink | If true, hard-link files to accelerator_tree, where possible. accelerator_tree must implement abspath, i.e. be a working tree. | |
| delta_from_tree | If true, build_tree may use the input Tree to generate the inventory delta. |
| Parameters | filter_tree_path | the tree path to use to lookup content filters to apply to the bytes output in the working tree. This only applies if the working tree supports content filtering. |