# HG changeset patch # User Philippe Pepiot <phil@philpep.org> # Date 1516706240 -3600 # Tue Jan 23 12:17:20 2018 +0100 # Node ID 1413a71a9b03d3d5474f0dd74a6e6530e53c0a2f # Parent d0c320751e22aba0f2685ad865c775b8da453167 Add pull benchmarks diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -198,6 +198,13 @@ cmd.extend(['-r', self.rev]) self._single_execute(cmd, expected_return_code=1 if strip == "same" else 0) + def time_pull(self, repo_name, strip, revset): + cmd = [self.hgpath, '--cwd', self.tmp_clone_path, 'pull', + self.repo_path] + if self.rev: + cmd.extend(['-r', self.rev]) + self._single_execute(cmd, expected_return_code=1 if strip == "same" else 0) + # class CloneTrackSuite(BaseTrackTestSuite):