changeset 29198:a3e5e1fb257c

tests: use debuginstall to retrieve hg version
author timeless <timeless@mozdev.org>
date Tue, 10 May 2016 22:52:26 +0000
parents c5f9ff302065
children daff05dcd184
files tests/test-extension.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";