# HG changeset patch # User Boris Feld <boris.feld@octobus.net> # Date 1515700136 0 # Thu Jan 11 19:48:56 2018 +0000 # Node ID b199101019bc6677e730248082e315ecd63ca3e0 # Parent 701995603c38dd4af75f72e30d7e3c5b1fe5da3e Update exchange test methods to not depends on their args It would be easier to update them this way diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -207,31 +207,31 @@ 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] - if revset: + if self.revset: 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] - if revset: + if self.revset: 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] - if revset: + if self.revset: cmd.extend(['-r', 'default']) return self._single_execute(cmd, False) return self._timeit(clone_and_push)