43
43
return creator.create(root=root)
45
def make_kernel_like_added_tree(self, root='.',
48
"""Make a kernel like tree, with all files added
50
:param root: Where to create the files
51
:param link_working: Instead of copying all of the working tree
52
files, just hardlink them to the cached files. Tests can unlink
53
files that they will change.
54
:param hot_cache: Run through the newly created tree and make sure
55
the stat-cache is correct. The old way of creating a freshly
56
added tree always had a hot cache.
58
from bzrlib.benchmarks.tree_creator.kernel_like import (
59
KernelLikeAddedTreeCreator,
61
creator = KernelLikeAddedTreeCreator(self, link_working=link_working,
63
return creator.create(root=root)
65
def make_kernel_like_committed_tree(self, root='.',
69
"""Make a kernel like tree, with all files added and committed
71
:param root: Where to create the files
72
:param link_working: Instead of copying all of the working tree
73
files, just hardlink them to the cached files. Tests can unlink
74
files that they will change.
75
:param link_bzr: Hardlink the .bzr directory. For readonly
76
operations this is safe, and shaves off a lot of setup time
78
from bzrlib.benchmarks.tree_creator.kernel_like import (
79
KernelLikeCommittedTreeCreator,
81
creator = KernelLikeCommittedTreeCreator(self,
82
link_working=link_working,
85
return creator.create(root=root)
45
87
def make_many_commit_tree(self, directory_name='.',
47
89
"""Create a tree with many commits.