tests: add sparserevlog requirement to test-sqlitestore.t
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 10 Dec 2018 19:41:43 +0000
changeset 53686 5014e93a5696
parent 53685 a0886a4d6dce
child 53693 afdbc9c6a333
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
tests: add sparserevlog requirement to test-sqlitestore.t Looks like this test was missed when enabling sparse revlogs by default. Differential Revision: https://phab.mercurial-scm.org/D5402
tests/test-sqlitestore.t
--- a/tests/test-sqlitestore.t
+++ b/tests/test-sqlitestore.t
@@ -8,29 +8,31 @@
 New repo should not use SQLite by default
 
   $ hg init empty-no-sqlite
   $ cat empty-no-sqlite/.hg/requires
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
 
 storage.new-repo-backend=sqlite is recognized
 
   $ hg --config storage.new-repo-backend=sqlite init empty-sqlite
   $ cat empty-sqlite/.hg/requires
   dotencode
   exp-sqlite-001
   exp-sqlite-comp-001=zstd (zstd !)
   exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ (no-zstd !)
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
 
   $ cat >> $HGRCPATH << EOF
   > [storage]
   > new-repo-backend = sqlite
   > EOF
 
 Can force compression to zlib
@@ -38,28 +40,30 @@ Can force compression to zlib
   $ hg --config storage.sqlite.compression=zlib init empty-zlib
   $ cat empty-zlib/.hg/requires
   dotencode
   exp-sqlite-001
   exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
 
 Can force compression to none
 
   $ hg --config storage.sqlite.compression=none init empty-none
   $ cat empty-none/.hg/requires
   dotencode
   exp-sqlite-001
   exp-sqlite-comp-001=none
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
 
 Can make a local commit
 
   $ hg init local-commit
   $ cd local-commit
   $ echo 0 > foo
   $ hg commit -A -m initial