b.b.t.h.HeavilyMergedTreeCreator(TreeCreator) : class documentation

Part of bzrlib.benchmarks.tree_creator.heavily_merged View In Hierarchy

Create a tree in which almost every commit is a merge.

No file changes are included. This produces two trees, one of which is returned. Except for the first commit, every commit in its revision-history is a merge of another commit in the other tree. Not hardlinking the working tree, because there are no working tree files.

Method __init__ Instantiate a new creator object, supply the id of the tree
Method _create_tree Create the desired tree in the given location.

Inherited from TreeCreator:

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 _clone_cached_tree Copy the contents of the cached dir into the destination
Method _protect_files Chmod all files underneath 'root' to prevent writing
def __init__(self, test, link_bzr=True):
Instantiate a new creator object, supply the id of the tree
ParameterstestA TestCaseWithTransport object (most creators need we need the build_tree functionality)
def _create_tree(self, root, in_cache=False):
Create the desired tree in the given location.

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

API Documentation for Bazaar, generated by pydoctor at 2010-08-03 00:12:18.