~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_checkout.py

  • Committer: Andrew Bennetts
  • Date: 2007-03-26 06:24:01 UTC
  • mto: This revision was merged to the branch mainline in revision 2376.
  • Revision ID: andrew.bennetts@canonical.com-20070326062401-k3nbefzje5332jaf
Deal with review comments from Robert:

  * Add my name to the NEWS file
  * Move the test case to a new module in branch_implementations
  * Remove revision_history cruft from identitymap and test_identitymap
  * Improve some docstrings

Also, this fixes a bug where revision_history was not returning a copy of the
cached data, allowing the cache to be corrupted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
class CheckoutBenchmark(Benchmark):
24
 
    """Benchmarks for ``'bzr checkout'`` performance."""
25
24
 
26
25
    def test_build_kernel_like_tree(self):
27
26
        """Checkout of a clean kernel sized tree should be (<10secs)."""
28
27
        self.make_kernel_like_committed_tree(link_bzr=True)
29
 
        self.time(self.run_bzr, ['checkout', '--lightweight', '.', 'acheckout'])
 
28
        self.time(self.run_bzr, 'checkout', '--lightweight', '.', 'acheckout')