b.b.t.k.KernelLikeTreeCreator(TreeCreator) : class documentation

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

Create a basic tree with ~10k unversioned files
Method __init__ Instantiate a new creator object, supply the id of the tree
Method create Create all the kernel files in the given location.
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 _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_working=False, url=None):
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(self, root):
Create all the kernel files in the given location.

This is overloaded for compatibility reasons.

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.