##// END OF EJS Templates
debugcommands: ability to suppress logging of handshake...
Gregory Szorc -
r37736:ad1c0700 default
parent child Browse files
Show More
@@ -2626,6 +2626,8 b' def _parsewirelangblocks(fh):'
2626 ('', 'localssh', False, _('start an SSH server for this repo')),
2626 ('', 'localssh', False, _('start an SSH server for this repo')),
2627 ('', 'peer', '', _('construct a specific version of the peer')),
2627 ('', 'peer', '', _('construct a specific version of the peer')),
2628 ('', 'noreadstderr', False, _('do not read from stderr of the remote')),
2628 ('', 'noreadstderr', False, _('do not read from stderr of the remote')),
2629 ('', 'nologhandshake', False,
2630 _('do not log I/O related to the peer handshake')),
2629 ] + cmdutil.remoteopts,
2631 ] + cmdutil.remoteopts,
2630 _('[PATH]'),
2632 _('[PATH]'),
2631 optionalrepo=True)
2633 optionalrepo=True)
@@ -2921,8 +2923,14 b' def debugwireproto(ui, repo, path=None, '
2921 # the peer instance to be useful.
2923 # the peer instance to be useful.
2922 with ui.configoverride({
2924 with ui.configoverride({
2923 ('experimental', 'httppeer.advertise-v2'): True}):
2925 ('experimental', 'httppeer.advertise-v2'): True}):
2926 if opts['nologhandshake']:
2927 ui.pushbuffer()
2928
2924 peer = httppeer.makepeer(ui, path, opener=opener)
2929 peer = httppeer.makepeer(ui, path, opener=opener)
2925
2930
2931 if opts['nologhandshake']:
2932 ui.popbuffer()
2933
2926 if not isinstance(peer, httppeer.httpv2peer):
2934 if not isinstance(peer, httppeer.httpv2peer):
2927 raise error.Abort(_('could not instantiate HTTP peer for '
2935 raise error.Abort(_('could not instantiate HTTP peer for '
2928 'wire protocol version 2'),
2936 'wire protocol version 2'),
@@ -309,7 +309,7 b' Show all commands + options'
309 debugwalk: include, exclude
309 debugwalk: include, exclude
310 debugwhyunstable:
310 debugwhyunstable:
311 debugwireargs: three, four, five, ssh, remotecmd, insecure
311 debugwireargs: three, four, five, ssh, remotecmd, insecure
312 debugwireproto: localssh, peer, noreadstderr, ssh, remotecmd, insecure
312 debugwireproto: localssh, peer, noreadstderr, nologhandshake, ssh, remotecmd, insecure
313 files: rev, print0, include, exclude, template, subrepos
313 files: rev, print0, include, exclude, template, subrepos
314 graft: rev, continue, edit, log, force, currentdate, currentuser, date, user, tool, dry-run
314 graft: rev, continue, edit, log, force, currentdate, currentuser, date, user, tool, dry-run
315 grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, template, include, exclude
315 grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, template, include, exclude
@@ -184,23 +184,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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 customreadonly command
187 sending customreadonly command
205 s> POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
188 s> POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
206 s> Accept-Encoding: identity\r\n
189 s> Accept-Encoding: identity\r\n
@@ -42,23 +42,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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 branchmap command
45 sending branchmap command
63 s> POST /api/exp-http-v2-0001/ro/branchmap HTTP/1.1\r\n
46 s> POST /api/exp-http-v2-0001/ro/branchmap HTTP/1.1\r\n
64 s> Accept-Encoding: identity\r\n
47 s> Accept-Encoding: identity\r\n
@@ -197,11 +197,11 b' Request for HTTPv2 service returns infor'
197
197
198 capabilities command returns expected info
198 capabilities command returns expected info
199
199
200 $ sendhttpv2peer << EOF
200 $ sendhttpv2peerhandshake << EOF
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)
204 s> GET /?cmd=capabilities HTTP/1.1\r\n
205 s> Accept-Encoding: identity\r\n
205 s> Accept-Encoding: identity\r\n
206 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
206 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
207 s> x-hgproto-1: cbor\r\n
207 s> x-hgproto-1: cbor\r\n
@@ -34,23 +34,6 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\xa3Hcommands\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\xa1DnameDzlibQframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
54 sending heads command
37 sending heads command
55 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
38 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
56 s> Accept-Encoding: identity\r\n
39 s> Accept-Encoding: identity\r\n
@@ -84,23 +67,6 b' Requesting just the public heads works'
84 > publiconly 1
67 > publiconly 1
85 > EOF
68 > EOF
86 creating http peer for wire protocol version 2
69 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\xa3Hcommands\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\xa1DnameDzlibQframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
104 sending heads command
70 sending heads command
105 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
71 s> POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
106 s> Accept-Encoding: identity\r\n
72 s> Accept-Encoding: identity\r\n
@@ -26,23 +26,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
46 sending known command
29 sending known command
47 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
30 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
48 s> Accept-Encoding: identity\r\n
31 s> Accept-Encoding: identity\r\n
@@ -76,23 +59,6 b' Single known node works'
76 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0']
59 > nodes eval:[b'\x42\x6b\xad\xa5\xc6\x75\x98\xca\x65\x03\x6d\x57\xd9\xe4\xb6\x4b\x0c\x1c\xe7\xa0']
77 > EOF
60 > EOF
78 creating http peer for wire protocol version 2
61 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
96 sending known command
62 sending known command
97 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
63 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
98 s> Accept-Encoding: identity\r\n
64 s> Accept-Encoding: identity\r\n
@@ -126,23 +92,6 b' Multiple nodes works'
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']
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']
127 > EOF
93 > EOF
128 creating http peer for wire protocol version 2
94 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
146 sending known command
95 sending known command
147 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
96 s> POST /api/exp-http-v2-0001/ro/known HTTP/1.1\r\n
148 s> Accept-Encoding: identity\r\n
97 s> Accept-Encoding: identity\r\n
@@ -30,23 +30,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
50 sending listkeys command
33 sending listkeys command
51 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
34 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
52 s> Accept-Encoding: identity\r\n
35 s> Accept-Encoding: identity\r\n
@@ -80,23 +63,6 b' Request for phases works'
80 > namespace phases
63 > namespace phases
81 > EOF
64 > EOF
82 creating http peer for wire protocol version 2
65 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
100 sending listkeys command
66 sending listkeys command
101 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
67 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
102 s> Accept-Encoding: identity\r\n
68 s> Accept-Encoding: identity\r\n
@@ -130,23 +96,6 b' Request for bookmarks works'
130 > namespace bookmarks
96 > namespace bookmarks
131 > EOF
97 > EOF
132 creating http peer for wire protocol version 2
98 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
150 sending listkeys command
99 sending listkeys command
151 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
100 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
152 s> Accept-Encoding: identity\r\n
101 s> Accept-Encoding: identity\r\n
@@ -26,23 +26,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
46 sending lookup command
29 sending lookup command
47 s> *\r\n (glob)
30 s> *\r\n (glob)
48 s> Accept-Encoding: identity\r\n
31 s> Accept-Encoding: identity\r\n
@@ -29,23 +29,6 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
49 sending pushkey command
32 sending pushkey command
50 s> *\r\n (glob)
33 s> *\r\n (glob)
51 s> Accept-Encoding: identity\r\n
34 s> Accept-Encoding: identity\r\n
@@ -77,23 +60,6 b' pushkey for a bookmark works'
77 > namespace bookmarks
60 > namespace bookmarks
78 > EOF
61 > EOF
79 creating http peer for wire protocol version 2
62 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\xa4Hcommands\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\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/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
97 sending listkeys command
63 sending listkeys command
98 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
64 s> POST /api/exp-http-v2-0001/ro/listkeys HTTP/1.1\r\n
99 s> Accept-Encoding: identity\r\n
65 s> Accept-Encoding: identity\r\n
@@ -6,6 +6,10 b' sendhttpraw() {'
6 }
6 }
7
7
8 sendhttpv2peer() {
8 sendhttpv2peer() {
9 hg --verbose debugwireproto --nologhandshake --peer http2 http://$LOCALIP:$HGPORT/
10 }
11
12 sendhttpv2peerhandshake() {
9 hg --verbose debugwireproto --peer http2 http://$LOCALIP:$HGPORT/
13 hg --verbose debugwireproto --peer http2 http://$LOCALIP:$HGPORT/
10 }
14 }
11
15
General Comments 0
You need to be logged in to leave comments. Login now