Mercurial > hg
annotate tests/test-http-proxy.t @ 51634:3b69324d9535 stable
exchange: fix locking to actually be scoped
The previous code was taking locks before entering with statements, so
exception before the with statement would not release the lock (except for
garbage collection).
We need to move to a try except here because the logic is more complicated.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 11 Jun 2024 11:14:13 +0200 |
parents | dcaa2df1f688 |
children | 73a43fe3e6fd |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
17740
diff
changeset
|
1 #require serve |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
2 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
3 $ hg init a |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
4 $ cd a |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
5 $ echo a > a |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
6 $ hg ci -Ama -d '1123456789 0' |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
7 adding a |
28549 | 8 $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
9 $ cat hg.pid >> $DAEMON_PIDS |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
10 $ cd .. |
32916
88c1d13b637b
test-http-proxy: redirect proxy stdout to /dev/null
Matt Harbison <matt_harbison@yahoo.com>
parents:
32079
diff
changeset
|
11 $ tinyproxy.py $HGPORT1 localhost 2>proxy.log >/dev/null </dev/null & |
16496
abbabbbe4ec2
tests: use 'do sleep 0' instead of 'do true', also on first line of command
Mads Kiilerich <mads@kiilerich.com>
parents:
16301
diff
changeset
|
12 $ while [ ! -f proxy.pid ]; do sleep 0; done |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
13 $ cat proxy.pid >> $DAEMON_PIDS |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
14 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
15 url for proxy, stream |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
16 |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34386
diff
changeset
|
17 $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --stream http://localhost:$HGPORT/ b |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
18 streaming all changes |
51181
dcaa2df1f688
changelog: never inline changelog
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49825
diff
changeset
|
19 7 files to transfer, 412 bytes of data (reporevlogstore no-rust !) |
dcaa2df1f688
changelog: never inline changelog
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49825
diff
changeset
|
20 9 files to transfer, 538 bytes of data (reporevlogstore rust !) |
37338
cbc4425e81b5
tests: conditionalize tests based on presence of revlogs for files
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35268
diff
changeset
|
21 4 files to transfer, 330 bytes of data (reposimplestore !) |
14023
2cd1520664b8
tests: check for (*/sec) instead of (*B/sec) to match (X bytes/sec)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
13364
diff
changeset
|
22 transferred * bytes in * seconds (*/sec) (glob) |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
23 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
25 $ cd b |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49274
diff
changeset
|
26 $ hg verify -q |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
27 $ cd .. |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
28 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
29 url for proxy, pull |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
30 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
31 $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone http://localhost:$HGPORT/ b-pull |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
32 requesting all changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
33 adding changesets |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
34 adding manifests |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
35 adding file changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
36 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
37 new changesets 83180e7845de |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
38 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
39 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
40 $ cd b-pull |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49274
diff
changeset
|
41 $ hg verify -q |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
42 $ cd .. |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
43 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
44 host:port for proxy |
2612
ffb895f16925
add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2571
diff
changeset
|
45 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
46 $ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ c |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
47 requesting all changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
48 adding changesets |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
49 adding manifests |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
50 adding file changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
51 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
52 new changesets 83180e7845de |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
53 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
54 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
55 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
56 proxy url with user name and password |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
57 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
58 $ http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ d |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
59 requesting all changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
60 adding changesets |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
61 adding manifests |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
62 adding file changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
63 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
64 new changesets 83180e7845de |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
65 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
66 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
67 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
68 url with user name and password |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
69 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
70 $ http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
71 requesting all changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
72 adding changesets |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
73 adding manifests |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
74 adding file changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
75 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
76 new changesets 83180e7845de |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
77 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
78 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
79 |
30851
7bfe02b57695
tests: also allow "Protocol not supported" in test-http-proxy error
Augie Fackler <augie@google.com>
parents:
30763
diff
changeset
|
80 bad host:port for proxy ("Protocol not supported" can happen on |
7bfe02b57695
tests: also allow "Protocol not supported" in test-http-proxy error
Augie Fackler <augie@google.com>
parents:
30763
diff
changeset
|
81 misconfigured hosts) |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
82 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
83 $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f |
41614
f2f538725d07
tests: fix regression tests failing on CentOS 7
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
40973
diff
changeset
|
84 abort: error: (Connection refused|Protocol not supported|.* actively refused it|\$EADDRNOTAVAIL\$|No route to host) (re) |
45839
ebee234d952a
errors: set detailed exit code to 100 for some remote errors
Martin von Zweigbergk <martinvonz@google.com>
parents:
41614
diff
changeset
|
85 [100] |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
86 |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
87 do not use the proxy if it is in the no list |
2337
3f24bc5dee81
http: fix many problems with url parsing and auth. added proxy test.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
88 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
89 $ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
90 requesting all changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
91 adding changesets |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
92 adding manifests |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
93 adding file changes |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
94 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
95 new changesets 83180e7845de |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
96 updating to branch default |
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
97 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
49274
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
98 |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
99 proxy can't connect to server |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
100 |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
101 $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone http://localhost:$HGPORT2/ h |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
102 abort: HTTP Error 404: Connection refused |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
103 [100] |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
104 |
12449
fc12114dbaa5
tests: unify test-http-proxy
Matt Mackall <mpm@selenic.com>
parents:
7919
diff
changeset
|
105 $ cat proxy.log |
37556
b77aa48ba690
httppeer: only advertise partial-pull if capabilities are known
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37498
diff
changeset
|
106 * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - - (glob) |
39722
4bd6e444c76f
bundle2: make server.bundle2.stream default to True
Anton Shestakov <av6@dwimlabs.net>
parents:
39489
diff
changeset
|
107 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
4bd6e444c76f
bundle2: make server.bundle2.stream default to True
Anton Shestakov <av6@dwimlabs.net>
parents:
39489
diff
changeset
|
108 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629&listkeys=bookmarks&stream=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
37556
b77aa48ba690
httppeer: only advertise partial-pull if capabilities are known
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37498
diff
changeset
|
109 * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - - (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
110 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
111 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
37556
b77aa48ba690
httppeer: only advertise partial-pull if capabilities are known
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37498
diff
changeset
|
112 * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - - (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
113 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
114 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
37556
b77aa48ba690
httppeer: only advertise partial-pull if capabilities are known
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37498
diff
changeset
|
115 * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - - (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
116 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
117 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
37556
b77aa48ba690
httppeer: only advertise partial-pull if capabilities are known
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37498
diff
changeset
|
118 * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - - (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
119 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
37338
diff
changeset
|
120 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
49274
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
121 * - - [*] code 404, message Connection refused (glob) |
b5fe10b3c9f5
py3: don’t subscript socket.error
Manuel Jacob <me@manueljacob.de>
parents:
45839
diff
changeset
|
122 $LOCALIP - - [$LOGDATE$] "GET http://localhost:$HGPORT2/?cmd=capabilities HTTP/1.1" 404 - (glob) |