~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_workingtree.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
class WorkingTreeBenchmark(Benchmark):
25
25
 
26
26
    def test_list_files_kernel_like_tree(self):
27
 
        tree = self.make_kernel_like_added_tree()
 
27
        self.make_kernel_like_tree()
 
28
        self.run_bzr('add')
 
29
        tree = WorkingTree.open('.')
28
30
        self.time(list, tree.list_files())
29
31
 
30
32
    def test_list_files_unknown_kernel_like_tree(self):
31
 
        tree = self.make_kernel_like_tree(link_working=True)
 
33
        self.make_kernel_like_tree()
32
34
        tree = WorkingTree.open('.')
33
35
        # Bzr only traverses directories if they are versioned
34
36
        # So add all the directories, but not the files, yielding