~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_status.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-28 07:08:27 UTC
  • mfrom: (2553.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070628070827-h5s313dg5tnag9vj
(robertc) Show the names of commit hooks during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
class StatusBenchmark(Benchmark):
24
 
    """Benchmarks for ``'bzr status'``."""
25
24
 
26
25
    def test_no_ignored_unknown_kernel_like_tree(self):
27
26
        """Status in a kernel sized tree with no ignored or unknowns.
42
41
        of a single file."""
43
42
        self.make_kernel_like_committed_tree()
44
43
        #XXX depends on the filenames generated by make_kernel_like_tree
45
 
        self.time(self.run_bzr, ['status', '7/4/0/16'])
 
44
        self.time(self.run_bzr, 'status', '7/4/0/16')
46
45
 
47
46
    def test_status_one_added_file_kernel_like_tree(self):
48
47
        """Status of a single added file in our stock large tree."""
49
48
        self.make_kernel_like_tree()
50
49
        self.run_bzr('add')
51
 
        self.run_bzr(['commit', '-m', 'initial import'])
52
 
        self.time(self.run_bzr, ['status', '3/3/3/10'])
 
50
        self.run_bzr('commit', '-m', 'initial import')
 
51
        self.time(self.run_bzr, 'status', '3/3/3/10')