##// END OF EJS Templates
debugcommands: perform handshake when obtaining httpv2 peer...
Gregory Szorc -
r37663:72b0982c default
parent child Browse files
Show More
@@ -83,7 +83,6 b' from . import ('
83 vfs as vfsmod,
83 vfs as vfsmod,
84 wireprotoframing,
84 wireprotoframing,
85 wireprotoserver,
85 wireprotoserver,
86 wireprototypes,
87 )
86 )
88 from .utils import (
87 from .utils import (
89 dateutil,
88 dateutil,
@@ -2911,9 +2910,19 b' def debugwireproto(ui, repo, path=None, '
2911
2910
2912 if opts['peer'] == 'http2':
2911 if opts['peer'] == 'http2':
2913 ui.write(_('creating http peer for wire protocol version 2\n'))
2912 ui.write(_('creating http peer for wire protocol version 2\n'))
2914 peer = httppeer.httpv2peer(
2913 # We go through makepeer() because we need an API descriptor for
2915 ui, path, 'api/%s' % wireprototypes.HTTP_WIREPROTO_V2,
2914 # the peer instance to be useful.
2916 opener, httppeer.urlreq.request, {})
2915 with ui.configoverride({
2916 ('experimental', 'httppeer.advertise-v2'): True}):
2917 peer = httppeer.makepeer(ui, path, opener=opener)
2918
2919 if not isinstance(peer, httppeer.httpv2peer):
2920 raise error.Abort(_('could not instantiate HTTP peer for '
2921 'wire protocol version 2'),
2922 hint=_('the server may not have the feature '
2923 'enabled or is not allowing this '
2924 'client version'))
2925
2917 elif opts['peer'] == 'raw':
2926 elif opts['peer'] == 'raw':
2918 ui.write(_('using raw connection to peer\n'))
2927 ui.write(_('using raw connection to peer\n'))
2919 peer = None
2928 peer = None
@@ -184,6 +184,23 b' Request to read-only command works out o'
184 > command customreadonly
184 > command customreadonly
185 > EOF
185 > EOF
186 creating http peer for wire protocol version 2
186 creating http peer for wire protocol version 2
187 s> GET /?cmd=capabilities HTTP/1.1\r\n
188 s> Accept-Encoding: identity\r\n
189 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
190 s> x-hgproto-1: cbor\r\n
191 s> x-hgupgrade-1: exp-http-v2-0001\r\n
192 s> accept: application/mercurial-0.1\r\n
193 s> host: $LOCALIP:$HGPORT\r\n (glob)
194 s> user-agent: Mercurial debugwireproto\r\n
195 s> \r\n
196 s> makefile('rb', None)
197 s> HTTP/1.1 200 OK\r\n
198 s> Server: testing stub value\r\n
199 s> Date: $HTTP_DATE$\r\n
200 s> Content-Type: application/mercurial-cbor\r\n
201 s> Content-Length: *\r\n (glob)
202 s> \r\n
203 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa9Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullNcustomreadonly\xa2Dargs\xa0Kpermissions\x81DpullOcustomreadwrite\xa2Dargs\xa0Kpermissions\x81DpushKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
187 sending customreadonly command
204 sending customreadonly command
188 s> POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
205 s> POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
189 s> Accept-Encoding: identity\r\n
206 s> Accept-Encoding: identity\r\n
@@ -303,7 +303,7 b' Client with HTTPv2 enabled automatically'
303 s> Server: testing stub value\r\n
303 s> Server: testing stub value\r\n
304 s> Date: $HTTP_DATE$\r\n
304 s> Date: $HTTP_DATE$\r\n
305 s> Content-Type: application/mercurial-cbor\r\n
305 s> Content-Type: application/mercurial-cbor\r\n
306 s> Content-Length: 879\r\n
306 s> Content-Length: *\r\n (glob)
307 s> \r\n
307 s> \r\n
308 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
308 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
309 sending heads command
309 sending heads command
@@ -42,6 +42,23 b' No arguments returns something reasonabl'
42 > command branchmap
42 > command branchmap
43 > EOF
43 > EOF
44 creating http peer for wire protocol version 2
44 creating http peer for wire protocol version 2
45 s> GET /?cmd=capabilities HTTP/1.1\r\n
46 s> Accept-Encoding: identity\r\n
47 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
48 s> x-hgproto-1: cbor\r\n
49 s> x-hgupgrade-1: exp-http-v2-0001\r\n
50 s> accept: application/mercurial-0.1\r\n
51 s> host: $LOCALIP:$HGPORT\r\n (glob)
52 s> user-agent: Mercurial debugwireproto\r\n
53 s> \r\n
54 s> makefile('rb', None)
55 s> HTTP/1.1 200 OK\r\n
56 s> Server: testing stub value\r\n
57 s> Date: $HTTP_DATE$\r\n
58 s> Content-Type: application/mercurial-cbor\r\n
59 s> Content-Length: *\r\n (glob)
60 s> \r\n
61 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
45 sending branchmap command
62 sending branchmap command
46 s> POST /api/exp-http-v2-0001/ro/branchmap HTTP/1.1\r\n
63 s> POST /api/exp-http-v2-0001/ro/branchmap HTTP/1.1\r\n
47 s> Accept-Encoding: identity\r\n
64 s> Accept-Encoding: identity\r\n
@@ -190,7 +190,7 b' Request for HTTPv2 service returns infor'
190 s> Server: testing stub value\r\n
190 s> Server: testing stub value\r\n
191 s> Date: $HTTP_DATE$\r\n
191 s> Date: $HTTP_DATE$\r\n
192 s> Content-Type: application/mercurial-cbor\r\n
192 s> Content-Type: application/mercurial-cbor\r\n
193 s> Content-Length: 879\r\n
193 s> Content-Length: *\r\n (glob)
194 s> \r\n
194 s> \r\n
195 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
195 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
196 cbor> {b'apibase': b'api/', b'apis': {b'exp-http-v2-0001': {b'commands': {b'branchmap': {b'args': {}, b'permissions': [b'pull']}, b'capabilities': {b'args': {}, b'permissions': [b'pull']}, b'heads': {b'args': {b'publiconly': False}, b'permissions': [b'pull']}, b'known': {b'args': {b'nodes': [b'deadbeef']}, b'permissions': [b'pull']}, b'listkeys': {b'args': {b'namespace': b'ns'}, b'permissions': [b'pull']}, b'lookup': {b'args': {b'key': b'foo'}, b'permissions': [b'pull']}, b'pushkey': {b'args': {b'key': b'key', b'namespace': b'ns', b'new': b'new', b'old': b'old'}, b'permissions': [b'push']}}, b'compression': [{b'name': b'zstd'}, {b'name': b'zlib'}]}}, b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash'}
196 cbor> {b'apibase': b'api/', b'apis': {b'exp-http-v2-0001': {b'commands': {b'branchmap': {b'args': {}, b'permissions': [b'pull']}, b'capabilities': {b'args': {}, b'permissions': [b'pull']}, b'heads': {b'args': {b'publiconly': False}, b'permissions': [b'pull']}, b'known': {b'args': {b'nodes': [b'deadbeef']}, b'permissions': [b'pull']}, b'listkeys': {b'args': {b'namespace': b'ns'}, b'permissions': [b'pull']}, b'lookup': {b'args': {b'key': b'foo'}, b'permissions': [b'pull']}, b'pushkey': {b'args': {b'key': b'key', b'namespace': b'ns', b'new': b'new', b'old': b'old'}, b'permissions': [b'push']}}, b'compression': [{b'name': b'zstd'}, {b'name': b'zlib'}]}}, b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash'}
@@ -201,6 +201,23 b' capabilities command returns expected in'
201 > command capabilities
201 > command capabilities
202 > EOF
202 > EOF
203 creating http peer for wire protocol version 2
203 creating http peer for wire protocol version 2
204 s> *\r\n (glob)
205 s> Accept-Encoding: identity\r\n
206 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
207 s> x-hgproto-1: cbor\r\n
208 s> x-hgupgrade-1: exp-http-v2-0001\r\n
209 s> accept: application/mercurial-0.1\r\n
210 s> host: $LOCALIP:$HGPORT\r\n (glob)
211 s> user-agent: Mercurial debugwireproto\r\n
212 s> \r\n
213 s> makefile('rb', None)
214 s> HTTP/1.1 200 OK\r\n
215 s> Server: testing stub value\r\n
216 s> Date: $HTTP_DATE$\r\n
217 s> Content-Type: application/mercurial-cbor\r\n
218 s> Content-Length: *\r\n (glob)
219 s> \r\n
220 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
204 sending capabilities command
221 sending capabilities command
205 s> POST /api/exp-http-v2-0001/ro/capabilities HTTP/1.1\r\n
222 s> POST /api/exp-http-v2-0001/ro/capabilities HTTP/1.1\r\n
206 s> Accept-Encoding: identity\r\n
223 s> Accept-Encoding: identity\r\n
@@ -34,6 +34,23 b' All non-secret heads returned by default'
34 > command heads
34 > command heads
35 > EOF
35 > EOF
36 creating http peer for wire protocol version 2
36 creating http peer for wire protocol version 2
37 s> GET /?cmd=capabilities HTTP/1.1\r\n
38 s> Accept-Encoding: identity\r\n
39 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
40 s> x-hgproto-1: cbor\r\n
41 s> x-hgupgrade-1: exp-http-v2-0001\r\n
42 s> accept: application/mercurial-0.1\r\n
43 s> host: $LOCALIP:$HGPORT\r\n (glob)
44 s> user-agent: Mercurial debugwireproto\r\n
45 s> \r\n
46 s> makefile('rb', None)
47 s> HTTP/1.1 200 OK\r\n
48 s> Server: testing stub value\r\n
49 s> Date: $HTTP_DATE$\r\n
50 s> Content-Type: application/mercurial-cbor\r\n
51 s> Content-Length: *\r\n (glob)
52 s> \r\n
53 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xa9batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
37 sending heads command
54 sending heads command
38 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
55 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
39 s> Accept-Encoding: identity\r\n
56 s> Accept-Encoding: identity\r\n
@@ -67,6 +84,23 b' Requesting just the public heads works'
67 > publiconly 1
84 > publiconly 1
68 > EOF
85 > EOF
69 creating http peer for wire protocol version 2
86 creating http peer for wire protocol version 2
87 s> GET /?cmd=capabilities HTTP/1.1\r\n
88 s> Accept-Encoding: identity\r\n
89 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
90 s> x-hgproto-1: cbor\r\n
91 s> x-hgupgrade-1: exp-http-v2-0001\r\n
92 s> accept: application/mercurial-0.1\r\n
93 s> host: $LOCALIP:$HGPORT\r\n (glob)
94 s> user-agent: Mercurial debugwireproto\r\n
95 s> \r\n
96 s> makefile('rb', None)
97 s> HTTP/1.1 200 OK\r\n
98 s> Server: testing stub value\r\n
99 s> Date: $HTTP_DATE$\r\n
100 s> Content-Type: application/mercurial-cbor\r\n
101 s> Content-Length: *\r\n (glob)
102 s> \r\n
103 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xa9batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
70 sending heads command
104 sending heads command
71 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
105 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
72 s> Accept-Encoding: identity\r\n
106 s> Accept-Encoding: identity\r\n
@@ -26,6 +26,23 b' No arguments returns something reasonabl'
26 > command known
26 > command known
27 > EOF
27 > EOF
28 creating http peer for wire protocol version 2
28 creating http peer for wire protocol version 2
29 s> GET /?cmd=capabilities HTTP/1.1\r\n
30 s> Accept-Encoding: identity\r\n
31 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
32 s> x-hgproto-1: cbor\r\n
33 s> x-hgupgrade-1: exp-http-v2-0001\r\n
34 s> accept: application/mercurial-0.1\r\n
35 s> host: $LOCALIP:$HGPORT\r\n (glob)
36 s> user-agent: Mercurial debugwireproto\r\n
37 s> \r\n
38 s> makefile('rb', None)
39 s> HTTP/1.1 200 OK\r\n
40 s> Server: testing stub value\r\n
41 s> Date: $HTTP_DATE$\r\n
42 s> Content-Type: application/mercurial-cbor\r\n
43 s> Content-Length: *\r\n (glob)
44 s> \r\n
45 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
29 sending known command
46 sending known command
30 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
47 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
31 s> Accept-Encoding: identity\r\n
48 s> Accept-Encoding: identity\r\n
@@ -59,6 +76,23 b' Single known node works'
59 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0']
76 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0']
60 > EOF
77 > EOF
61 creating http peer for wire protocol version 2
78 creating http peer for wire protocol version 2
79 s> GET /?cmd=capabilities HTTP/1.1\r\n
80 s> Accept-Encoding: identity\r\n
81 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
82 s> x-hgproto-1: cbor\r\n
83 s> x-hgupgrade-1: exp-http-v2-0001\r\n
84 s> accept: application/mercurial-0.1\r\n
85 s> host: $LOCALIP:$HGPORT\r\n (glob)
86 s> user-agent: Mercurial debugwireproto\r\n
87 s> \r\n
88 s> makefile('rb', None)
89 s> HTTP/1.1 200 OK\r\n
90 s> Server: testing stub value\r\n
91 s> Date: $HTTP_DATE$\r\n
92 s> Content-Type: application/mercurial-cbor\r\n
93 s> Content-Length: *\r\n (glob)
94 s> \r\n
95 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
62 sending known command
96 sending known command
63 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
97 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
64 s> Accept-Encoding: identity\r\n
98 s> Accept-Encoding: identity\r\n
@@ -92,6 +126,23 b' Multiple nodes works'
92 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0', b'00000000000000000000', b'\x11\x24\x78\x96\x29\x61\x14\x71\x24\xed\xd4\x35\x49\xae\xdd\x1a\x33\x5e\x44\xbf']
126 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0', b'00000000000000000000', b'\x11\x24\x78\x96\x29\x61\x14\x71\x24\xed\xd4\x35\x49\xae\xdd\x1a\x33\x5e\x44\xbf']
93 > EOF
127 > EOF
94 creating http peer for wire protocol version 2
128 creating http peer for wire protocol version 2
129 s> GET /?cmd=capabilities HTTP/1.1\r\n
130 s> Accept-Encoding: identity\r\n
131 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
132 s> x-hgproto-1: cbor\r\n
133 s> x-hgupgrade-1: exp-http-v2-0001\r\n
134 s> accept: application/mercurial-0.1\r\n
135 s> host: $LOCALIP:$HGPORT\r\n (glob)
136 s> user-agent: Mercurial debugwireproto\r\n
137 s> \r\n
138 s> makefile('rb', None)
139 s> HTTP/1.1 200 OK\r\n
140 s> Server: testing stub value\r\n
141 s> Date: $HTTP_DATE$\r\n
142 s> Content-Type: application/mercurial-cbor\r\n
143 s> Content-Length: *\r\n (glob)
144 s> \r\n
145 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
95 sending known command
146 sending known command
96 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
147 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
97 s> Accept-Encoding: identity\r\n
148 s> Accept-Encoding: identity\r\n
@@ -30,6 +30,23 b' Request for namespaces works'
30 > namespace namespaces
30 > namespace namespaces
31 > EOF
31 > EOF
32 creating http peer for wire protocol version 2
32 creating http peer for wire protocol version 2
33 s> GET /?cmd=capabilities HTTP/1.1\r\n
34 s> Accept-Encoding: identity\r\n
35 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
36 s> x-hgproto-1: cbor\r\n
37 s> x-hgupgrade-1: exp-http-v2-0001\r\n
38 s> accept: application/mercurial-0.1\r\n
39 s> host: $LOCALIP:$HGPORT\r\n (glob)
40 s> user-agent: Mercurial debugwireproto\r\n
41 s> \r\n
42 s> makefile('rb', None)
43 s> HTTP/1.1 200 OK\r\n
44 s> Server: testing stub value\r\n
45 s> Date: $HTTP_DATE$\r\n
46 s> Content-Type: application/mercurial-cbor\r\n
47 s> Content-Length: *\r\n (glob)
48 s> \r\n
49 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
33 sending listkeys command
50 sending listkeys command
34 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
51 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
35 s> Accept-Encoding: identity\r\n
52 s> Accept-Encoding: identity\r\n
@@ -63,6 +80,23 b' Request for phases works'
63 > namespace phases
80 > namespace phases
64 > EOF
81 > EOF
65 creating http peer for wire protocol version 2
82 creating http peer for wire protocol version 2
83 s> GET /?cmd=capabilities HTTP/1.1\r\n
84 s> Accept-Encoding: identity\r\n
85 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
86 s> x-hgproto-1: cbor\r\n
87 s> x-hgupgrade-1: exp-http-v2-0001\r\n
88 s> accept: application/mercurial-0.1\r\n
89 s> host: $LOCALIP:$HGPORT\r\n (glob)
90 s> user-agent: Mercurial debugwireproto\r\n
91 s> \r\n
92 s> makefile('rb', None)
93 s> HTTP/1.1 200 OK\r\n
94 s> Server: testing stub value\r\n
95 s> Date: $HTTP_DATE$\r\n
96 s> Content-Type: application/mercurial-cbor\r\n
97 s> Content-Length: *\r\n (glob)
98 s> \r\n
99 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
66 sending listkeys command
100 sending listkeys command
67 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
101 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
68 s> Accept-Encoding: identity\r\n
102 s> Accept-Encoding: identity\r\n
@@ -96,6 +130,23 b' Request for bookmarks works'
96 > namespace bookmarks
130 > namespace bookmarks
97 > EOF
131 > EOF
98 creating http peer for wire protocol version 2
132 creating http peer for wire protocol version 2
133 s> GET /?cmd=capabilities HTTP/1.1\r\n
134 s> Accept-Encoding: identity\r\n
135 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
136 s> x-hgproto-1: cbor\r\n
137 s> x-hgupgrade-1: exp-http-v2-0001\r\n
138 s> accept: application/mercurial-0.1\r\n
139 s> host: $LOCALIP:$HGPORT\r\n (glob)
140 s> user-agent: Mercurial debugwireproto\r\n
141 s> \r\n
142 s> makefile('rb', None)
143 s> HTTP/1.1 200 OK\r\n
144 s> Server: testing stub value\r\n
145 s> Date: $HTTP_DATE$\r\n
146 s> Content-Type: application/mercurial-cbor\r\n
147 s> Content-Length: *\r\n (glob)
148 s> \r\n
149 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
99 sending listkeys command
150 sending listkeys command
100 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
151 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
101 s> Accept-Encoding: identity\r\n
152 s> Accept-Encoding: identity\r\n
@@ -26,6 +26,23 b' lookup for known node works'
26 > key 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
26 > key 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
27 > EOF
27 > EOF
28 creating http peer for wire protocol version 2
28 creating http peer for wire protocol version 2
29 s> *\r\n (glob)
30 s> Accept-Encoding: identity\r\n
31 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
32 s> x-hgproto-1: cbor\r\n
33 s> x-hgupgrade-1: exp-http-v2-0001\r\n
34 s> accept: application/mercurial-0.1\r\n
35 s> host: $LOCALIP:$HGPORT\r\n (glob)
36 s> user-agent: Mercurial debugwireproto\r\n
37 s> \r\n
38 s> makefile('rb', None)
39 s> HTTP/1.1 200 OK\r\n
40 s> Server: testing stub value\r\n
41 s> Date: $HTTP_DATE$\r\n
42 s> Content-Type: application/mercurial-cbor\r\n
43 s> Content-Length: *\r\n (glob)
44 s> \r\n
45 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
29 sending lookup command
46 sending lookup command
30 s> *\r\n (glob)
47 s> *\r\n (glob)
31 s> Accept-Encoding: identity\r\n
48 s> Accept-Encoding: identity\r\n
@@ -29,6 +29,23 b' pushkey for a bookmark works'
29 > new 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
29 > new 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
30 > EOF
30 > EOF
31 creating http peer for wire protocol version 2
31 creating http peer for wire protocol version 2
32 s> *\r\n (glob)
33 s> Accept-Encoding: identity\r\n
34 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
35 s> x-hgproto-1: cbor\r\n
36 s> x-hgupgrade-1: exp-http-v2-0001\r\n
37 s> accept: application/mercurial-0.1\r\n
38 s> host: $LOCALIP:$HGPORT\r\n (glob)
39 s> user-agent: Mercurial debugwireproto\r\n
40 s> \r\n
41 s> makefile('rb', None)
42 s> HTTP/1.1 200 OK\r\n
43 s> Server: testing stub value\r\n
44 s> Date: $HTTP_DATE$\r\n
45 s> Content-Type: application/mercurial-cbor\r\n
46 s> Content-Length: *\r\n (glob)
47 s> \r\n
48 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
32 sending pushkey command
49 sending pushkey command
33 s> *\r\n (glob)
50 s> *\r\n (glob)
34 s> Accept-Encoding: identity\r\n
51 s> Accept-Encoding: identity\r\n
@@ -60,6 +77,23 b' pushkey for a bookmark works'
60 > namespace bookmarks
77 > namespace bookmarks
61 > EOF
78 > EOF
62 creating http peer for wire protocol version 2
79 creating http peer for wire protocol version 2
80 s> GET /?cmd=capabilities HTTP/1.1\r\n
81 s> Accept-Encoding: identity\r\n
82 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
83 s> x-hgproto-1: cbor\r\n
84 s> x-hgupgrade-1: exp-http-v2-0001\r\n
85 s> accept: application/mercurial-0.1\r\n
86 s> host: $LOCALIP:$HGPORT\r\n (glob)
87 s> user-agent: Mercurial debugwireproto\r\n
88 s> \r\n
89 s> makefile('rb', None)
90 s> HTTP/1.1 200 OK\r\n
91 s> Server: testing stub value\r\n
92 s> Date: $HTTP_DATE$\r\n
93 s> Content-Type: application/mercurial-cbor\r\n
94 s> Content-Length: *\r\n (glob)
95 s> \r\n
96 s> \xa3Dapis\xa1Pexp-http-v2-0001\xa2Hcommands\xa7Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullKcompression\x82\xa1DnameDzstd\xa1DnameDzlibGapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
63 sending listkeys command
97 sending listkeys command
64 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
98 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
65 s> Accept-Encoding: identity\r\n
99 s> Accept-Encoding: identity\r\n
General Comments 0
You need to be logged in to leave comments. Login now