Skip to content
Snippets Groups Projects
Commit bd3efc0bcba0 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Use hg() in get_asv_rev()

parent d688904fb637
No related branches found
No related tags found
No related merge requests found
...@@ -168,10 +168,8 @@ ...@@ -168,10 +168,8 @@
def get_asv_rev(self): def get_asv_rev(self):
'''Return currently benchmarked mercurial revision''' '''Return currently benchmarked mercurial revision'''
return subprocess.check_output([ return self.hg('log', '--cwd', self.project_dir, '-T',
self.hgpath, 'log', '--cwd', self.project_dir, '{node|short}', '-r', '.').strip()
'-T', '{node|short}', '-r', '.'],
env=self.environ).strip()
def check_output(self, *args, **kwargs): def check_output(self, *args, **kwargs):
"""Helper to run commands """Helper to run commands
......
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