Changeset View
Changeset View
Standalone View
Standalone View
tests/test-http.t
Show All 23 Lines | Test server address cannot be reused | ||||
$ cd .. | $ cd .. | ||||
$ cat hg1.pid hg2.pid >> $DAEMON_PIDS | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS | ||||
clone via stream | clone via stream | ||||
#if no-reposimplestore | #if no-reposimplestore | ||||
$ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 | $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 | ||||
streaming all changes | streaming all changes | ||||
6 files to transfer, 606 bytes of data | 9 files to transfer, 715 bytes of data | ||||
transferred * bytes in * seconds (*/sec) (glob) | transferred * bytes in * seconds (*/sec) (glob) | ||||
searching for changes | |||||
no changes found | |||||
updating to branch default | updating to branch default | ||||
4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg verify -R copy | $ hg verify -R copy | ||||
checking changesets | checking changesets | ||||
checking manifests | checking manifests | ||||
crosschecking files in changesets and manifests | crosschecking files in changesets and manifests | ||||
checking files | checking files | ||||
checked 1 changesets with 4 changes to 4 files | checked 1 changesets with 4 changes to 4 files | ||||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | + use the same server to test server side streaming preference | ||||
$ hg id http://localhost:$HGPORT2/ | $ hg id http://localhost:$HGPORT2/ | ||||
5fed3813f7f5 | 5fed3813f7f5 | ||||
$ hg id http://user@localhost:$HGPORT2/ | $ hg id http://user@localhost:$HGPORT2/ | ||||
5fed3813f7f5 | 5fed3813f7f5 | ||||
#if no-reposimplestore | #if no-reposimplestore | ||||
$ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 | $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 | ||||
streaming all changes | streaming all changes | ||||
7 files to transfer, 916 bytes of data | 10 files to transfer, 1.01 KB of data | ||||
transferred * bytes in * seconds (*/sec) (glob) | transferred * KB in * seconds (*/sec) (glob) | ||||
searching for changes | |||||
no changes found | |||||
updating to branch default | updating to branch default | ||||
5 files updated, 0 files merged, 0 files removed, 0 files unresolved | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
#endif | #endif | ||||
--pull should override server's preferuncompressed | --pull should override server's preferuncompressed | ||||
$ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 | ||||
requesting all changes | requesting all changes | ||||
adding changesets | adding changesets | ||||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | --pull should override server's preferuncompressed | ||||
"GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=capabilities HTTP/1.1" 401 - | "GET /?cmd=capabilities HTTP/1.1" 401 - | ||||
"GET /?cmd=capabilities HTTP/1.1" 200 - | "GET /?cmd=capabilities HTTP/1.1" 200 - | ||||
"GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | ||||
"GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | ||||
"GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | ||||
"GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&stream=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | ||||
"GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |||||
"GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |||||
"GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | ||||
"GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | ||||
"GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | ||||
"GET /?cmd=capabilities HTTP/1.1" 401 - | "GET /?cmd=capabilities HTTP/1.1" 401 - | ||||
"GET /?cmd=capabilities HTTP/1.1" 401 - | "GET /?cmd=capabilities HTTP/1.1" 401 - | ||||
"GET /?cmd=capabilities HTTP/1.1" 403 - | "GET /?cmd=capabilities HTTP/1.1" 403 - | ||||
"GET /?cmd=capabilities HTTP/1.1" 401 - | "GET /?cmd=capabilities HTTP/1.1" 401 - | ||||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | |||||
#if no-reposimplestore | #if no-reposimplestore | ||||
... but keep stream clones working | ... but keep stream clones working | ||||
$ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone | $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone | ||||
streaming all changes | streaming all changes | ||||
* files to transfer, * of data (glob) | * files to transfer, * of data (glob) | ||||
transferred * in * seconds (*/sec) (glob) | transferred * in * seconds (*/sec) (glob) | ||||
searching for changes | |||||
no changes found | |||||
$ cat error.log | $ cat error.log | ||||
#endif | #endif | ||||
... and also keep partial clones and pulls working | ... and also keep partial clones and pulls working | ||||
$ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone | $ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone | ||||
adding changesets | adding changesets | ||||
adding manifests | adding manifests | ||||
adding file changes | adding file changes | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |