~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-15 05:02:17 UTC
  • mfrom: (1908.2.20 benchmark-caching)
  • Revision ID: pqm@pqm.ubuntu.com-20060815050217-d2df7c83d6c5eeca
(jam) bzr selftest --benchmark --cache-dir=foo will save and re-use setup trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
    def test_log(self):
45
45
        """Run log in a many-commit tree.""" 
46
 
        tree = self.make_many_commit_tree()
 
46
        tree = self.make_many_commit_tree(hardlink=True)
47
47
        lf = log_formatter('long', to_file=StringIO())
48
48
        self.time(show_log, tree.branch, lf, direction='reverse')
49
49
 
50
50
    def test_merge_log(self):
51
51
        """Run log in a tree with many merges"""
52
 
        tree = self.make_heavily_merged_tree()
 
52
        tree = self.make_heavily_merged_tree(hardlink=True)
53
53
        lf = log_formatter('short', to_file=StringIO())
54
54
        self.time(show_log, tree.branch, lf, direction='reverse')
55
55
 
67
67
 
68
68
    def screenful_tester(self, formatter):
69
69
        """Run show_log, but stop after 25 lines are generated"""
70
 
        tree = self.make_many_commit_tree()
 
70
        tree = self.make_many_commit_tree(hardlink=True)
71
71
        def log_screenful():
72
72
            lf = log_formatter(formatter, to_file=LineConsumer(25))
73
73
            try:
80
80
 
81
81
    def test_cmd_log(self):
82
82
        """Test execution of the log command.""" 
83
 
        tree = self.make_many_commit_tree()
 
83
        tree = self.make_many_commit_tree(hardlink=True)
84
84
        self.time(self.run_bzr, 'log', '-r', '-4..')
85
85
 
86
86
    def test_cmd_log_subprocess(self):
87
87
        """Text startup and execution of the log command.""" 
88
 
        tree = self.make_many_commit_tree()
 
88
        tree = self.make_many_commit_tree(hardlink=True)
89
89
        self.time(self.run_bzr_subprocess, 'log', '-r', '-4..')
90
90
 
91
91
    def test_log_verbose(self):
92
92
        """'verbose' log -- shows file changes"""
93
 
        tree = self.make_many_commit_tree()
 
93
        tree = self.make_many_commit_tree(hardlink=True)
94
94
        lf = log_formatter('long', to_file=StringIO())
95
95
        self.time(show_log, tree.branch, lf, direction='reverse', verbose=True)