/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:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060815031949-3a28a6d6a9388586
I think it is actually better as simple helper functions on Benchmark

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
 
    )
25
21
from bzrlib.workingtree import WorkingTree
26
22
 
27
23
 
28
24
class WorkingTreeBenchmark(Benchmark):
29
25
 
30
26
    def test_list_files_kernel_like_tree(self):
31
 
        tree = make_kernel_like_added_tree(self, '.')
 
27
        tree = self.make_kernel_like_added_tree()
32
28
        self.time(list, tree.list_files())
33
29
 
34
30
    def test_list_files_unknown_kernel_like_tree(self):
35
 
        tree = make_kernel_like_tree(self, '.')
 
31
        tree = self.make_kernel_like_tree(link_working=True)
36
32
        tree = WorkingTree.open('.')
37
33
        # Bzr only traverses directories if they are versioned
38
34
        # So add all the directories, but not the files, yielding