Skip to content
Snippets Groups Projects
Commit 6c141455 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmarks: simplify argument passing

This will help to update the code in a later changeset.
parent 672dbf55
No related branches found
No related tags found
No related merge requests found
......@@ -183,5 +183,6 @@
When there is no '--cwd' in arguments, use the benchmarked repo with
'hg --cwd /path/to/repo'
"""
args = list(args)
if '--cwd' not in args:
# use self.repo_path as repo
......@@ -186,8 +187,7 @@
if '--cwd' not in args:
# use self.repo_path as repo
cmd = [self.hgpath, '--cwd', self.repo_path] + list(args)
else:
cmd = [self.hgpath] + list(args)
args = ['--cwd', self.repo_path] + args
cmd = [self.hgpath] + list(args)
return self.check_output(*cmd, **kwargs)
def safe_hg(self, command, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment