diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py index 701995603c38dd4af75f72e30d7e3c5b1fe5da3e_YmVuY2htYXJrcy9iYXNpY19jb21tYW5kcy5weQ==..b199101019bc6677e730248082e315ecd63ca3e0_YmVuY2htYXJrcy9iYXNpY19jb21tYW5kcy5weQ== 100644 --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -207,6 +207,6 @@ finally: shutil.rmtree(clone_path) - def track_incoming(self, repo_name, revset): + def track_incoming(self, *args, **kwargs): with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', clone_path, 'incoming', self.repo_path] @@ -211,8 +211,8 @@ with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', clone_path, 'incoming', self.repo_path] - if revset: + if self.revset: cmd.extend(['-r', 'default']) # Ignore the return code return self._timeit(self._single_execute, (cmd, False)) @@ -214,9 +214,9 @@ cmd.extend(['-r', 'default']) # Ignore the return code return self._timeit(self._single_execute, (cmd, False)) - def track_outgoing(self, repo_name, revset): + def track_outgoing(self, *args, **kwargs): with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', self.repo_path, 'outgoing', clone_path] @@ -220,9 +220,9 @@ with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', self.repo_path, 'outgoing', clone_path] - if revset: + if self.revset: cmd.extend(['-r', 'default']) # Ignore the return code return self._timeit(self._single_execute, (cmd, False)) @@ -224,10 +224,10 @@ cmd.extend(['-r', 'default']) # Ignore the return code return self._timeit(self._single_execute, (cmd, False)) - def track_push(self, repo_name, revset): + def track_push(self, *args, **kwargs): def clone_and_push(): with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', self.repo_path, 'push', '-f', clone_path] @@ -230,8 +230,8 @@ def clone_and_push(): with self.clone_from_cache() as clone_path: cmd = [self.hgpath, '--cwd', self.repo_path, 'push', '-f', clone_path] - if revset: + if self.revset: cmd.extend(['-r', 'default']) return self._single_execute(cmd, False) return self._timeit(clone_and_push)