# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1569236103 -7200
#      Mon Sep 23 12:55:03 2019 +0200
# Node ID a6bbce538c342dfb4e9f77bdf5e2d0eca8ecdd42
# Parent  f21449c3d0306cfa38805b5a207e357044907f7e
setup: clone mercurial using and older format for compatibility

When running with an older Mercurial version we might need to look into the
source repository.

note: we should probably do these lookup using the system Mercurial anyway.

diff --git a/lib/before-check.sh b/lib/before-check.sh
--- a/lib/before-check.sh
+++ b/lib/before-check.sh
@@ -19,7 +19,7 @@
 # Ensure all repository are here
 
 if [ ! -d mercurial ]; then
-    hg clone https://www.mercurial-scm.org/repo/hg mercurial
+    hg clone https://www.mercurial-scm.org/repo/hg mercurial --config format.sparse-revlog=no --config format.usegeneraldelta=no --config experimental.evolution.exchange=no
 fi
 
 if [ "$SCMPERF_WARMCACHE" != "skip" ] ; then
diff --git a/tests/test-smoke-test.t b/tests/test-smoke-test.t
--- a/tests/test-smoke-test.t
+++ b/tests/test-smoke-test.t
@@ -152,7 +152,7 @@
   new changesets * (glob) (?)
   * files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) (?)
   + '[' '!' -d mercurial ']'
-  + hg clone https://www.mercurial-scm.org/repo/hg mercurial
+  + hg clone https://www.mercurial-scm.org/repo/hg mercurial --config format.sparse-revlog=no --config format.usegeneraldelta=no --config experimental.evolution.exchange=no
   + '[' '' '!=' skip ']'
   + '[' -n $TESTTMP ']'
   + cd mercurial