Skip to content
Snippets Groups Projects
Commit b11495c2a7e2 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

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.
parent 4d1a96bb831f
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment