# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1526560025 -7200
#      Thu May 17 14:27:05 2018 +0200
# Node ID bd3efc0bcba02f2dbaad98f51e121054966f844a
# Parent  d688904fb63773f610811884dca502a18e82a505
Use hg() in get_asv_rev()

diff --git a/benchmarks/utils.py b/benchmarks/utils.py
--- a/benchmarks/utils.py
+++ b/benchmarks/utils.py
@@ -168,10 +168,8 @@
 
     def get_asv_rev(self):
         '''Return currently benchmarked mercurial revision'''
-        return subprocess.check_output([
-            self.hgpath, 'log', '--cwd', self.project_dir,
-            '-T', '{node|short}', '-r', '.'],
-            env=self.environ).strip()
+        return self.hg('log', '--cwd', self.project_dir, '-T',
+                       '{node|short}', '-r', '.').strip()
 
     def check_output(self, *args, **kwargs):
         """Helper to run commands