/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-15 03:19:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060815031908-5208d87bc727d34b
Refactor helper functions into each creator file

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import os
19
19
 
20
20
from bzrlib.benchmarks import Benchmark
 
21
from bzrlib.benchmarks.tree_creator.kernel_like import (
 
22
    make_kernel_like_tree,
 
23
    make_kernel_like_added_tree,
 
24
    )
21
25
from bzrlib.workingtree import WorkingTree
22
26
 
23
27
 
24
28
class WorkingTreeBenchmark(Benchmark):
25
29
 
26
30
    def test_list_files_kernel_like_tree(self):
27
 
        tree = self.make_kernel_like_added_tree()
 
31
        tree = make_kernel_like_added_tree(self, '.')
28
32
        self.time(list, tree.list_files())
29
33
 
30
34
    def test_list_files_unknown_kernel_like_tree(self):
31
 
        tree = self.make_kernel_like_tree(link_working=True)
 
35
        tree = make_kernel_like_tree(self, '.')
32
36
        tree = WorkingTree.open('.')
33
37
        # Bzr only traverses directories if they are versioned
34
38
        # So add all the directories, but not the files, yielding