[PATCH] test-init: add test with format.usefncache=false

Adrian Buehlmann adrian at cadifra.com
Mon Oct 27 12:33:19 UTC 2008


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1225110165 -3600
# Node ID 80a7290ad9cca3401a57bfa56b29e888d0693c81
# Parent  c4461ea8b4c8022568080ecc847ba4ed3e17906c
test-init: add test with format.usefncache=false

diff --git a/tests/test-init b/tests/test-init
--- a/tests/test-init
+++ b/tests/test-init
@@ -44,9 +44,13 @@
 echo this > local/foo
 hg ci --cwd local -A -m "init" -d "1000000 0"
 
-echo "# creating repo with old format"
+echo "# creating repo with format.usestore=false"
 hg --config format.usestore=false init old
 checknewrepo old
+
+echo "# creating repo with format.usefncache=false"
+hg --config format.usefncache=false init old2
+checknewrepo old2
 
 echo "#test failure"
 hg init local
diff --git a/tests/test-init.out b/tests/test-init.out
--- a/tests/test-init.out
+++ b/tests/test-init.out
@@ -5,8 +5,13 @@
 store
 fncache
 adding foo
-# creating repo with old format
+# creating repo with format.usestore=false
 revlogv1
+# creating repo with format.usefncache=false
+store created
+00changelog.i created
+revlogv1
+store
 #test failure
 abort: repository local already exists!
 # init+push to remote2



More information about the Mercurial-devel mailing list