~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_workingtree.py

track down a couple other places where we are using list_files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
            if root == '.':
46
46
                continue
47
47
            tree.add(root)
48
 
        self.time(list, tree.list_files())
 
48
        tree.lock_read()
 
49
        try:
 
50
            self.time(list, tree.list_files())
 
51
        finally:
 
52
            tree.unlock()
49
53
 
50
54
    def test_is_ignored_single_call(self):
51
55
        """How long does is_ignored take to initialise and check one file."""