tests/helpers-testrepo.sh
changeset 37342 4e6a6d0dccee
parent 33206 45d6e2767a93
child 37475 152f1b47e0ad
--- a/tests/helpers-testrepo.sh	Wed Apr 04 12:16:50 2018 -0700
+++ b/tests/helpers-testrepo.sh	Wed Apr 04 13:21:34 2018 -0700
@@ -9,6 +9,13 @@
 # The mercurial source repository was typically orignally cloned with the
 # system mercurial installation, and may require extensions or settings from
 # the system installation.
+
+if [ -n $HGTESTEXTRAEXTENSIONS ]; then
+    for extension in $HGTESTEXTRAEXTENSIONS; do
+        extraoptions="$extraoptions --config extensions.$extension=!"
+    done
+fi
+
 syshg () {
     (
         syshgenv
@@ -48,6 +55,6 @@
     alias testrepohg=syshg
     alias testrepohgenv=syshgenv
 else
-    alias testrepohg=hg
+    alias testrepohg="hg $extraoptions"
     alias testrepohgenv=:
 fi