Skip to content
Snippets Groups Projects
Commit 8a5dcb1391a2 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Add `util_hg` wrapper to hg as a stepping stone to a future patch

parent 2d9b6d35634c
No related branches found
No related tags found
No related merge requests found
......@@ -485,6 +485,20 @@
raise RuntimeError('unexpected return code 0 for {}'.format(cmd))
return output
def util_hg(self, *args, **kwargs):
"""Run given command arguments with the latest available hg
Sometimes we want to run Mercurial commands that are orthogonal or
unrelated to the benchmarks. We want to use the most robust version
available, or at least the latest, to be able to query any repository.
When there is no '--cwd' in arguments, use the benchmarked repo with
'hg --cwd /path/to/repo'
"""
# TODO actually call the latest available hg
return self.hg(*args, **kwargs)
def hg(self, *args, **kwargs):
"""Run given command arguments with hg
......
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