tests: use debuginstall to retrieve hg version
authortimeless <timeless@mozdev.org>
Tue, 10 May 2016 22:52:26 +0000
changeset 29198 a3e5e1fb257c
parent 29197 c5f9ff302065
child 29199 daff05dcd184
tests: use debuginstall to retrieve hg version
tests/test-extension.t
--- a/tests/test-extension.t	Tue May 10 22:45:45 2016 +0000
+++ b/tests/test-extension.t	Tue May 10 22:52:26 2016 +0000
@@ -958,7 +958,7 @@
   ** Extensions loaded: throw, older
 
 Declare the version as supporting this hg version, show regular bts link:
-  $ hgver=`$PYTHON -c 'from mercurial import util; print util.version().split("+")[0]'`
+  $ hgver=`hg debuginstall -T '{hgver}'`
   $ echo 'testedwith = """'"$hgver"'"""' >> throw.py
   $ if [ -z "$hgver" ]; then
   >   echo "unable to fetch a mercurial version. Make sure __version__ is correct";