~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bundle.py

  • Committer: Robert Collins
  • Date: 2007-08-05 02:57:45 UTC
  • mto: (2592.3.77 repository)
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070805025745-eg2qmr8jzsky39y2
StartĀ open_file_streamĀ logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        or added and one commit.
40
40
        """ 
41
41
        self.make_kernel_like_committed_tree()
42
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
42
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
43
43
 
44
44
    def test_create_bundle_many_commit_tree (self):
45
45
        """Create a bundle for a tree with many commits but no changes.""" 
46
46
        self.make_many_commit_tree()
47
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
47
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
48
48
 
49
49
    def test_create_bundle_heavily_merged_tree(self):
50
50
        """Create a bundle for a heavily merged tree.""" 
51
51
        self.make_heavily_merged_tree()
52
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
52
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
53
53
        
54
54
    def test_apply_bundle_known_kernel_like_tree(self):
55
55
        """Create a bundle for a kernel sized tree with no ignored, unknowns,
66
66
 
67
67
        tree2 = self.make_branch_and_tree('branch_a')
68
68
        os.chdir('branch_a')
69
 
        self.time(self.run_bzr, 'merge', '../bundle')
 
69
        self.time(self.run_bzr, ['merge', '../bundle'])
70
70
 
71
71
 
72
72
class BundleLibraryLevelWriteBenchmark(Benchmark):