test: enable sparse-revlog for test-lfs-largefiles.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:09:08 +0100
changeset 53662 c35d3cb758a467a4f1e754b3d8a7a41f4f3f24f3
parent 53661 ed8e4748b9da532081441d8511ec93f48afcf9f1
child 53663 0e21db2458f4bd49875656403f78ac83f0620f1a
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-lfs-largefiles.t We are about to enable sparse-revlog globally. To help with reviewing the tests change, we isolate them in individual changesets. Differential Revision: https://phab.mercurial-scm.org/D5323
tests/test-lfs-largefiles.t
--- a/tests/test-lfs-largefiles.t
+++ b/tests/test-lfs-largefiles.t
@@ -1,8 +1,14 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
 #require no-reposimplestore no-chg
 
 This tests the interaction between the largefiles and lfs extensions, and
 conversion from largefiles -> lfs.
 
   $ cat >> $HGRCPATH << EOF
   > [extensions]
   > largefiles =
@@ -289,16 +295,17 @@ parameters are available, but not --auth
 The requirement is added to the destination repo.
 
   $ cat .hg/requires
   dotencode
   fncache
   generaldelta
   lfs
   revlogv1
+  sparserevlog
   store
 
   $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
   o  8 large_by_size.bin (remove large_by_size.bin)
   |
   o  7 large_by_size.bin (large by size)
   |
   o    6  (merge largefiles with lfs -> large)