tests: test generaldelta configuration in test-init.t
We turn the feature on for the whole test and test that it can properly be
disabled through the config.
--- a/tests/test-init.t Mon Oct 19 11:28:31 2015 +0200
+++ b/tests/test-init.t Mon Oct 19 15:25:58 2015 +0200
@@ -1,5 +1,12 @@
This test tries to exercise the ssh functionality with a dummy script
+(enable general delta early)
+
+ $ cat << EOF >> $HGRCPATH
+ > [format]
+ > usegeneraldelta=yes
+ > EOF
+
$ checknewrepo()
> {
> name=$1
@@ -20,6 +27,7 @@
00changelog.i created
dotencode
fncache
+ generaldelta
revlogv1
store
$ echo this > local/foo
@@ -55,6 +63,7 @@
$ hg --config format.usestore=false init old
$ checknewrepo old
+ generaldelta
revlogv1
creating repo with format.usefncache=false
@@ -63,6 +72,7 @@
$ checknewrepo old2
store created
00changelog.i created
+ generaldelta
revlogv1
store
@@ -73,6 +83,18 @@
store created
00changelog.i created
fncache
+ generaldelta
+ revlogv1
+ store
+
+creating repo with format.dotencode=false
+
+ $ hg --config format.generaldelta=false --config format.usegeneraldelta=false init old4
+ $ checknewrepo old4
+ store created
+ 00changelog.i created
+ dotencode
+ fncache
revlogv1
store
@@ -186,6 +208,7 @@
00changelog.i created
dotencode
fncache
+ generaldelta
revlogv1
store
@@ -203,6 +226,7 @@
00changelog.i created
dotencode
fncache
+ generaldelta
revlogv1
store
@@ -216,6 +240,7 @@
00changelog.i created
dotencode
fncache
+ generaldelta
revlogv1
store