~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-28 18:42:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3968.
  • Revision ID: jelmer@samba.org-20090128184255-bdmklkvm83ltk191
Update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import shutil
22
22
 
23
23
from bzrlib import bzrdir
24
 
from bzrlib.add import smart_add
25
24
from bzrlib.benchmarks import Benchmark
26
25
from bzrlib.branch import Branch
27
26
from bzrlib.bundle.apply_bundle import install_bundle
39
38
        or added and one commit.
40
39
        """ 
41
40
        self.make_kernel_like_committed_tree()
42
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
41
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
43
42
 
44
43
    def test_create_bundle_many_commit_tree (self):
45
44
        """Create a bundle for a tree with many commits but no changes.""" 
46
45
        self.make_many_commit_tree()
47
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
46
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
48
47
 
49
48
    def test_create_bundle_heavily_merged_tree(self):
50
49
        """Create a bundle for a heavily merged tree.""" 
51
50
        self.make_heavily_merged_tree()
52
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
51
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
53
52
        
54
53
    def test_apply_bundle_known_kernel_like_tree(self):
55
54
        """Create a bundle for a kernel sized tree with no ignored, unknowns,
66
65
 
67
66
        tree2 = self.make_branch_and_tree('branch_a')
68
67
        os.chdir('branch_a')
69
 
        self.time(self.run_bzr, 'merge', '../bundle')
 
68
        self.time(self.run_bzr, ['merge', '../bundle'])
70
69
 
71
70
 
72
71
class BundleLibraryLevelWriteBenchmark(Benchmark):