Skip to content
Snippets Groups Projects
Commit 99dfe806d2f3 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

test-treemanifest: cleanup the test to more easily show server side error

This made my life easier debugging.
parent 822320591c46
No related branches found
No related tags found
2 merge requests!618Draft: 6.5rc0,!582streamclone: getting revlog data from the revlog themselves
...@@ -211,8 +211,11 @@ ...@@ -211,8 +211,11 @@
(branch merge, don't forget to commit) (branch merge, don't forget to commit)
$ hg ci -m 'merge of flat manifests to new flat manifest' $ hg ci -m 'merge of flat manifests to new flat manifest'
$ hg serve -p $HGPORT -d --pid-file=hg.pid --errorlog=errors.log $ cd ..
$ cat hg.pid >> $DAEMON_PIDS $ hg -R repo-flat serve -p $HGPORT -d \
> --pid-file=port-0-hg.pid \
> --errorlog=port-0-errors.log
$ cat port-0-hg.pid >> $DAEMON_PIDS
Create clone with tree manifests enabled Create clone with tree manifests enabled
...@@ -216,7 +219,6 @@ ...@@ -216,7 +219,6 @@
Create clone with tree manifests enabled Create clone with tree manifests enabled
$ cd ..
$ hg clone --config experimental.treemanifest=1 \ $ hg clone --config experimental.treemanifest=1 \
> http://localhost:$HGPORT repo-mixed -r 1 > http://localhost:$HGPORT repo-mixed -r 1
adding changesets adding changesets
...@@ -226,6 +228,7 @@ ...@@ -226,6 +228,7 @@
new changesets 5b02a3e8db7e:581ef6037d8b new changesets 5b02a3e8db7e:581ef6037d8b
updating to branch default updating to branch default
11 files updated, 0 files merged, 0 files removed, 0 files unresolved 11 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cat port-0-errors.log
$ cd repo-mixed $ cd repo-mixed
$ test -d .hg/store/meta $ test -d .hg/store/meta
[1] [1]
...@@ -654,6 +657,4 @@ ...@@ -654,6 +657,4 @@
$ cp -R .hg/store-newcopy/. .hg/store $ cp -R .hg/store-newcopy/. .hg/store
Test cloning a treemanifest repo over http. Test cloning a treemanifest repo over http.
$ hg serve -p $HGPORT -d --pid-file=hg.pid --errorlog=errors.log
$ cat hg.pid >> $DAEMON_PIDS
$ cd .. $ cd ..
...@@ -659,4 +660,9 @@ ...@@ -659,4 +660,9 @@
$ cd .. $ cd ..
$ hg -R deeprepo serve -p $HGPORT -d \
> --pid-file=port-0-hg.pid \
> --errorlog=port-0-errors.log
$ cat port-0-hg.pid >> $DAEMON_PIDS
We can clone even with the knob turned off and we'll get a treemanifest repo. We can clone even with the knob turned off and we'll get a treemanifest repo.
$ hg clone --config experimental.treemanifest=False \ $ hg clone --config experimental.treemanifest=False \
> --config experimental.changegroup3=True \ > --config experimental.changegroup3=True \
...@@ -670,7 +676,8 @@ ...@@ -670,7 +676,8 @@
updating to branch default updating to branch default
8 files updated, 0 files merged, 0 files removed, 0 files unresolved 8 files updated, 0 files merged, 0 files removed, 0 files unresolved
No server errors. No server errors.
$ cat deeprepo/errors.log $ cat port-0-errors.log
requires got updated to include treemanifest requires got updated to include treemanifest
$ hg debugrequires -R deepclone | grep treemanifest $ hg debugrequires -R deepclone | grep treemanifest
treemanifest treemanifest
...@@ -713,6 +720,5 @@ ...@@ -713,6 +720,5 @@
new changesets 775704be6f52:523e5c631710 new changesets 775704be6f52:523e5c631710
updating to branch default updating to branch default
8 files updated, 0 files merged, 0 files removed, 0 files unresolved 8 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd deeprepo-basicstore $ hg -R deeprepo-basicstore debugrequires | grep store
$ hg debugrequires | grep store
[1] [1]
...@@ -718,7 +724,9 @@ ...@@ -718,7 +724,9 @@
[1] [1]
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --errorlog=errors.log $ hg -R deeprepo-basicstore serve -p $HGPORT1 -d \
$ cat hg.pid >> $DAEMON_PIDS > --pid-file=port-1-hg.pid \
$ cd .. > --errorlog=port-1-errors.log
$ cat port-1-hg.pid >> $DAEMON_PIDS
$ hg clone --config format.usefncache=False \ $ hg clone --config format.usefncache=False \
> --config experimental.changegroup3=True \ > --config experimental.changegroup3=True \
> http://localhost:$HGPORT deeprepo-encodedstore > http://localhost:$HGPORT deeprepo-encodedstore
...@@ -730,6 +738,5 @@ ...@@ -730,6 +738,5 @@
new changesets 775704be6f52:523e5c631710 new changesets 775704be6f52:523e5c631710
updating to branch default updating to branch default
8 files updated, 0 files merged, 0 files removed, 0 files unresolved 8 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd deeprepo-encodedstore $ hg -R deeprepo-encodedstore debugrequires | grep fncache
$ hg debugrequires | grep fncache
[1] [1]
...@@ -735,7 +742,8 @@ ...@@ -735,7 +742,8 @@
[1] [1]
$ hg serve -p $HGPORT2 -d --pid-file=hg.pid --errorlog=errors.log $ hg -R deeprepo-encodedstore serve -p $HGPORT2 -d \
$ cat hg.pid >> $DAEMON_PIDS > --pid-file=port-2-hg.pid \
$ cd .. > --errorlog=port-2-errors.log
$ cat port-2-hg.pid >> $DAEMON_PIDS
Local clone with basicstore Local clone with basicstore
$ hg clone -U deeprepo-basicstore local-clone-basicstore $ hg clone -U deeprepo-basicstore local-clone-basicstore
...@@ -756,6 +764,7 @@ ...@@ -756,6 +764,7 @@
28 files to transfer, * of data (glob) 28 files to transfer, * of data (glob)
transferred * in * seconds (*) (glob) transferred * in * seconds (*) (glob)
$ hg -R stream-clone-basicstore verify -q $ hg -R stream-clone-basicstore verify -q
$ cat port-1-errors.log
Stream clone with encodedstore Stream clone with encodedstore
$ hg clone --config experimental.changegroup3=True --stream -U \ $ hg clone --config experimental.changegroup3=True --stream -U \
...@@ -764,6 +773,7 @@ ...@@ -764,6 +773,7 @@
28 files to transfer, * of data (glob) 28 files to transfer, * of data (glob)
transferred * in * seconds (*) (glob) transferred * in * seconds (*) (glob)
$ hg -R stream-clone-encodedstore verify -q $ hg -R stream-clone-encodedstore verify -q
$ cat port-2-errors.log
Stream clone with fncachestore Stream clone with fncachestore
$ hg clone --config experimental.changegroup3=True --stream -U \ $ hg clone --config experimental.changegroup3=True --stream -U \
...@@ -772,6 +782,7 @@ ...@@ -772,6 +782,7 @@
22 files to transfer, * of data (glob) 22 files to transfer, * of data (glob)
transferred * in * seconds (*) (glob) transferred * in * seconds (*) (glob)
$ hg -R stream-clone-fncachestore verify -q $ hg -R stream-clone-fncachestore verify -q
$ cat port-0-errors.log
Packed bundle Packed bundle
$ hg -R deeprepo debugcreatestreamclonebundle repo-packed.hg $ hg -R deeprepo debugcreatestreamclonebundle repo-packed.hg
......
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