/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_commit.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-08 17:35:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1937.
  • Revision ID: john@arbash-meinel.com-20060808173514-7ad32ffd5b0421e4
Fix up tests with new hot cache work

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
    def test_commit_one_in_kernel_like_tree_cold_hash_cache(self):
49
49
        """Time committing a single change, when not directly specified"""
50
 
        tree = self.make_kernel_like_committed_tree()
 
50
        tree = self.make_kernel_like_committed_tree(hot_cache=False)
51
51
 
52
52
        # working-tree is hardlinked, so replace a file and commit the change
53
53
        os.remove('4/4/4/4')
58
58
        """Time committing a single change, when not directly specified"""
59
59
        tree = self.make_kernel_like_committed_tree()
60
60
 
61
 
        # Freshen the hash cache
62
 
        self.run_bzr('status')
63
 
 
64
61
        # working-tree is hardlinked, so replace a file and commit the change
65
62
        os.remove('4/4/4/4')
66
63
        open('4/4/4/4', 'wb').write('new contents\n')
69
66
    def test_partial_commit_one_in_kernel_like_tree_cold_hash_cache(self):
70
67
        """Time committing a single change when it is directly specified"""
71
68
 
72
 
        tree = self.make_kernel_like_committed_tree()
 
69
        tree = self.make_kernel_like_committed_tree(hot_cache=False)
73
70
 
74
71
        # working-tree is hardlinked, so replace a file and commit the change
75
72
        os.remove('4/4/4/4')
80
77
        """Time committing a single change when it is directly specified"""
81
78
 
82
79
        tree = self.make_kernel_like_committed_tree()
83
 
        self.run_bzr('status')
84
80
 
85
81
        # working-tree is hardlinked, so replace a file and commit the change
86
82
        os.remove('4/4/4/4')