Part of bzrlib.benchmarks.tree_creator View In Hierarchy
Known subclasses: bzrlib.benchmarks.tree_creator.heavily_merged.HeavilyMergedTreeCreator, bzrlib.benchmarks.tree_creator.kernel_like.KernelLikeAddedTreeCreator, bzrlib.benchmarks.tree_creator.kernel_like.KernelLikeCommittedTreeCreator, bzrlib.benchmarks.tree_creator.kernel_like.KernelLikeInventoryCreator, bzrlib.benchmarks.tree_creator.kernel_like.KernelLikeTreeCreator, bzrlib.benchmarks.tree_creator.many_commit.ManyCommitTreeCreator, bzrlib.benchmarks.tree_creator.simple_many_commit.SimpleManyCommitTreeCreator
| Method | __init__ | Instantiate a new creator object, supply the id of the tree |
| Method | is_caching_enabled | Will we try to cache the tree we create? |
| Method | is_cached | Is this tree already cached? |
| Method | disable_cache | Do not use the cache |
| Method | ensure_cached | If caching, make sure the cached copy exists |
| Method | create | Create a new tree at 'root'. |
| Method | _get_cache_dir | Get the directory to use for caching this tree |
| Method | _create_tree | Create the desired tree in the given location. |
| Method | _clone_cached_tree | Copy the contents of the cached dir into the destination |
| Method | _protect_files | Chmod all files underneath 'root' to prevent writing |
| Parameters | test | A TestCaseWithTransport object (most creators need we need the build_tree functionality) |
| Returns | A WorkingTree object. | |
| Returns | The path to use for caching. If None, caching is disabled | |
Children should override this function to provide the actual creation of the desired tree. This will be called by 'create()'. If it is building a tree in the cache, before copying it to the real target, it will pass in_cache=True