##// END OF EJS Templates
test: enable sparse-revlog for test-wireproto-command-capabilities.t...
Boris Feld -
r40951:e64a28e2 default
parent child Browse files
Show More
@@ -1,748 +1,756
1 TRANSITIONAL CONFIG
2 $ cat << EOF >> $HGRCPATH
3 > [format]
4 > sparse-revlog = yes
5 > EOF
6
1 7 #require no-chg
2 8
3 9 $ . $TESTDIR/wireprotohelpers.sh
4 10
5 11 $ hg init server
6 12
7 13 zstd isn't present in plain builds. Make tests easier by removing
8 14 zstd from the equation.
9 15
10 16 $ cat >> server/.hg/hgrc << EOF
11 17 > [server]
12 18 > compressionengines = zlib
13 19 > EOF
14 20
15 21 $ hg -R server serve -p $HGPORT -d --pid-file hg.pid -E error.log
16 22 $ cat hg.pid > $DAEMON_PIDS
17 23
18 24 A normal capabilities request is serviced for version 1
19 25
20 26 $ sendhttpraw << EOF
21 27 > httprequest GET ?cmd=capabilities
22 28 > user-agent: test
23 29 > EOF
24 30 using raw connection to peer
25 31 s> GET /?cmd=capabilities HTTP/1.1\r\n
26 32 s> Accept-Encoding: identity\r\n
27 33 s> user-agent: test\r\n
28 34 s> host: $LOCALIP:$HGPORT\r\n (glob)
29 35 s> \r\n
30 36 s> makefile('rb', None)
31 37 s> HTTP/1.1 200 Script output follows\r\n
32 38 s> Server: testing stub value\r\n
33 39 s> Date: $HTTP_DATE$\r\n
34 40 s> Content-Type: application/mercurial-0.1\r\n
35 41 s> Content-Length: *\r\n (glob)
36 42 s> \r\n
37 s> batch branchmap $USUAL_BUNDLE2_CAPS$ 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
43 s> batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
38 44
39 45 A proper request without the API server enabled returns the legacy response
40 46
41 47 $ sendhttpraw << EOF
42 48 > httprequest GET ?cmd=capabilities
43 49 > user-agent: test
44 50 > x-hgupgrade-1: foo
45 51 > x-hgproto-1: cbor
46 52 > EOF
47 53 using raw connection to peer
48 54 s> GET /?cmd=capabilities HTTP/1.1\r\n
49 55 s> Accept-Encoding: identity\r\n
50 56 s> user-agent: test\r\n
51 57 s> x-hgproto-1: cbor\r\n
52 58 s> x-hgupgrade-1: foo\r\n
53 59 s> host: $LOCALIP:$HGPORT\r\n (glob)
54 60 s> \r\n
55 61 s> makefile('rb', None)
56 62 s> HTTP/1.1 200 Script output follows\r\n
57 63 s> Server: testing stub value\r\n
58 64 s> Date: $HTTP_DATE$\r\n
59 65 s> Content-Type: application/mercurial-0.1\r\n
60 66 s> Content-Length: *\r\n (glob)
61 67 s> \r\n
62 s> batch branchmap $USUAL_BUNDLE2_CAPS$ 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
68 s> batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
63 69
64 70 Restart with just API server enabled. This enables serving the new format.
65 71
66 72 $ killdaemons.py
67 73 $ cat error.log
68 74
69 75 $ cat >> server/.hg/hgrc << EOF
70 76 > [experimental]
71 77 > web.apiserver = true
72 78 > EOF
73 79
74 80 $ hg -R server serve -p $HGPORT -d --pid-file hg.pid -E error.log
75 81 $ cat hg.pid > $DAEMON_PIDS
76 82
77 83 X-HgUpgrade-<N> without CBOR advertisement uses legacy response
78 84
79 85 $ sendhttpraw << EOF
80 86 > httprequest GET ?cmd=capabilities
81 87 > user-agent: test
82 88 > x-hgupgrade-1: foo bar
83 89 > EOF
84 90 using raw connection to peer
85 91 s> GET /?cmd=capabilities HTTP/1.1\r\n
86 92 s> Accept-Encoding: identity\r\n
87 93 s> user-agent: test\r\n
88 94 s> x-hgupgrade-1: foo bar\r\n
89 95 s> host: $LOCALIP:$HGPORT\r\n (glob)
90 96 s> \r\n
91 97 s> makefile('rb', None)
92 98 s> HTTP/1.1 200 Script output follows\r\n
93 99 s> Server: testing stub value\r\n
94 100 s> Date: $HTTP_DATE$\r\n
95 101 s> Content-Type: application/mercurial-0.1\r\n
96 102 s> Content-Length: *\r\n (glob)
97 103 s> \r\n
98 s> batch branchmap $USUAL_BUNDLE2_CAPS$ 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
104 s> batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
99 105
100 106 X-HgUpgrade-<N> without known serialization in X-HgProto-<N> uses legacy response
101 107
102 108 $ sendhttpraw << EOF
103 109 > httprequest GET ?cmd=capabilities
104 110 > user-agent: test
105 111 > x-hgupgrade-1: foo bar
106 112 > x-hgproto-1: some value
107 113 > EOF
108 114 using raw connection to peer
109 115 s> GET /?cmd=capabilities HTTP/1.1\r\n
110 116 s> Accept-Encoding: identity\r\n
111 117 s> user-agent: test\r\n
112 118 s> x-hgproto-1: some value\r\n
113 119 s> x-hgupgrade-1: foo bar\r\n
114 120 s> host: $LOCALIP:$HGPORT\r\n (glob)
115 121 s> \r\n
116 122 s> makefile('rb', None)
117 123 s> HTTP/1.1 200 Script output follows\r\n
118 124 s> Server: testing stub value\r\n
119 125 s> Date: $HTTP_DATE$\r\n
120 126 s> Content-Type: application/mercurial-0.1\r\n
121 127 s> Content-Length: *\r\n (glob)
122 128 s> \r\n
123 s> batch branchmap $USUAL_BUNDLE2_CAPS$ 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
129 s> batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
124 130
125 131 X-HgUpgrade-<N> + X-HgProto-<N> headers trigger new response format
126 132
127 133 $ sendhttpraw << EOF
128 134 > httprequest GET ?cmd=capabilities
129 135 > user-agent: test
130 136 > x-hgupgrade-1: foo bar
131 137 > x-hgproto-1: cbor
132 138 > EOF
133 139 using raw connection to peer
134 140 s> GET /?cmd=capabilities HTTP/1.1\r\n
135 141 s> Accept-Encoding: identity\r\n
136 142 s> user-agent: test\r\n
137 143 s> x-hgproto-1: cbor\r\n
138 144 s> x-hgupgrade-1: foo bar\r\n
139 145 s> host: $LOCALIP:$HGPORT\r\n (glob)
140 146 s> \r\n
141 147 s> makefile('rb', None)
142 148 s> HTTP/1.1 200 OK\r\n
143 149 s> Server: testing stub value\r\n
144 150 s> Date: $HTTP_DATE$\r\n
145 151 s> Content-Type: application/mercurial-cbor\r\n
146 152 s> Content-Length: *\r\n (glob)
147 153 s> \r\n
148 s> \xa3GapibaseDapi/Dapis\xa0Nv1capabilitiesY\x01\xd3batch branchmap $USUAL_BUNDLE2_CAPS$ 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
154 s> \xa3GapibaseDapi/Dapis\xa0Nv1capabilitiesY\x01\xe0batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
149 155 cbor> [
150 156 {
151 157 b'apibase': b'api/',
152 158 b'apis': {},
153 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ 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'
159 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash'
154 160 }
155 161 ]
156 162
157 163 Restart server to enable HTTPv2
158 164
159 165 $ killdaemons.py
160 166 $ enablehttpv2 server
161 167 $ hg -R server serve -p $HGPORT -d --pid-file hg.pid -E error.log
162 168 $ cat hg.pid > $DAEMON_PIDS
163 169
164 170 Only requested API services are returned
165 171
166 172 $ sendhttpraw << EOF
167 173 > httprequest GET ?cmd=capabilities
168 174 > user-agent: test
169 175 > x-hgupgrade-1: foo bar
170 176 > x-hgproto-1: cbor
171 177 > EOF
172 178 using raw connection to peer
173 179 s> GET /?cmd=capabilities HTTP/1.1\r\n
174 180 s> Accept-Encoding: identity\r\n
175 181 s> user-agent: test\r\n
176 182 s> x-hgproto-1: cbor\r\n
177 183 s> x-hgupgrade-1: foo bar\r\n
178 184 s> host: $LOCALIP:$HGPORT\r\n (glob)
179 185 s> \r\n
180 186 s> makefile('rb', None)
181 187 s> HTTP/1.1 200 OK\r\n
182 188 s> Server: testing stub value\r\n
183 189 s> Date: $HTTP_DATE$\r\n
184 190 s> Content-Type: application/mercurial-cbor\r\n
185 191 s> Content-Length: *\r\n (glob)
186 192 s> \r\n
187 s> \xa3GapibaseDapi/Dapis\xa0Nv1capabilitiesY\x01\xd3batch branchmap $USUAL_BUNDLE2_CAPS$ 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
193 s> \xa3GapibaseDapi/Dapis\xa0Nv1capabilitiesY\x01\xe0batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
188 194 cbor> [
189 195 {
190 196 b'apibase': b'api/',
191 197 b'apis': {},
192 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ 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'
198 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash'
193 199 }
194 200 ]
195 201
196 202 Request for HTTPv2 service returns information about it
197 203
198 204 $ sendhttpraw << EOF
199 205 > httprequest GET ?cmd=capabilities
200 206 > user-agent: test
201 207 > x-hgupgrade-1: exp-http-v2-0003 foo bar
202 208 > x-hgproto-1: cbor
203 209 > EOF
204 210 using raw connection to peer
205 211 s> GET /?cmd=capabilities HTTP/1.1\r\n
206 212 s> Accept-Encoding: identity\r\n
207 213 s> user-agent: test\r\n
208 214 s> x-hgproto-1: cbor\r\n
209 215 s> x-hgupgrade-1: exp-http-v2-0003 foo bar\r\n
210 216 s> host: $LOCALIP:$HGPORT\r\n (glob)
211 217 s> \r\n
212 218 s> makefile('rb', None)
213 219 s> HTTP/1.1 200 OK\r\n
214 220 s> Server: testing stub value\r\n
215 221 s> Date: $HTTP_DATE$\r\n
216 222 s> Content-Type: application/mercurial-cbor\r\n
217 223 s> Content-Length: *\r\n (glob)
218 224 s> \r\n
219 s> \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0003\xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x82LgeneraldeltaHrevlogv1Nv1capabilitiesY\x01\xd3batch branchmap $USUAL_BUNDLE2_CAPS$ 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
225 s> \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0003\xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x83LgeneraldeltaHrevlogv1LsparserevlogNv1capabilitiesY\x01\xe0batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
220 226 cbor> [
221 227 {
222 228 b'apibase': b'api/',
223 229 b'apis': {
224 230 b'exp-http-v2-0003': {
225 231 b'commands': {
226 232 b'branchmap': {
227 233 b'args': {},
228 234 b'permissions': [
229 235 b'pull'
230 236 ]
231 237 },
232 238 b'capabilities': {
233 239 b'args': {},
234 240 b'permissions': [
235 241 b'pull'
236 242 ]
237 243 },
238 244 b'changesetdata': {
239 245 b'args': {
240 246 b'fields': {
241 247 b'default': set([]),
242 248 b'required': False,
243 249 b'type': b'set',
244 250 b'validvalues': set([
245 251 b'bookmarks',
246 252 b'parents',
247 253 b'phase',
248 254 b'revision'
249 255 ])
250 256 },
251 257 b'revisions': {
252 258 b'required': True,
253 259 b'type': b'list'
254 260 }
255 261 },
256 262 b'permissions': [
257 263 b'pull'
258 264 ]
259 265 },
260 266 b'filedata': {
261 267 b'args': {
262 268 b'fields': {
263 269 b'default': set([]),
264 270 b'required': False,
265 271 b'type': b'set',
266 272 b'validvalues': set([
267 273 b'linknode',
268 274 b'parents',
269 275 b'revision'
270 276 ])
271 277 },
272 278 b'haveparents': {
273 279 b'default': False,
274 280 b'required': False,
275 281 b'type': b'bool'
276 282 },
277 283 b'nodes': {
278 284 b'required': True,
279 285 b'type': b'list'
280 286 },
281 287 b'path': {
282 288 b'required': True,
283 289 b'type': b'bytes'
284 290 }
285 291 },
286 292 b'permissions': [
287 293 b'pull'
288 294 ]
289 295 },
290 296 b'filesdata': {
291 297 b'args': {
292 298 b'fields': {
293 299 b'default': set([]),
294 300 b'required': False,
295 301 b'type': b'set',
296 302 b'validvalues': set([
297 303 b'firstchangeset',
298 304 b'linknode',
299 305 b'parents',
300 306 b'revision'
301 307 ])
302 308 },
303 309 b'haveparents': {
304 310 b'default': False,
305 311 b'required': False,
306 312 b'type': b'bool'
307 313 },
308 314 b'pathfilter': {
309 315 b'default': None,
310 316 b'required': False,
311 317 b'type': b'dict'
312 318 },
313 319 b'revisions': {
314 320 b'required': True,
315 321 b'type': b'list'
316 322 }
317 323 },
318 324 b'permissions': [
319 325 b'pull'
320 326 ],
321 327 b'recommendedbatchsize': 50000
322 328 },
323 329 b'heads': {
324 330 b'args': {
325 331 b'publiconly': {
326 332 b'default': False,
327 333 b'required': False,
328 334 b'type': b'bool'
329 335 }
330 336 },
331 337 b'permissions': [
332 338 b'pull'
333 339 ]
334 340 },
335 341 b'known': {
336 342 b'args': {
337 343 b'nodes': {
338 344 b'default': [],
339 345 b'required': False,
340 346 b'type': b'list'
341 347 }
342 348 },
343 349 b'permissions': [
344 350 b'pull'
345 351 ]
346 352 },
347 353 b'listkeys': {
348 354 b'args': {
349 355 b'namespace': {
350 356 b'required': True,
351 357 b'type': b'bytes'
352 358 }
353 359 },
354 360 b'permissions': [
355 361 b'pull'
356 362 ]
357 363 },
358 364 b'lookup': {
359 365 b'args': {
360 366 b'key': {
361 367 b'required': True,
362 368 b'type': b'bytes'
363 369 }
364 370 },
365 371 b'permissions': [
366 372 b'pull'
367 373 ]
368 374 },
369 375 b'manifestdata': {
370 376 b'args': {
371 377 b'fields': {
372 378 b'default': set([]),
373 379 b'required': False,
374 380 b'type': b'set',
375 381 b'validvalues': set([
376 382 b'parents',
377 383 b'revision'
378 384 ])
379 385 },
380 386 b'haveparents': {
381 387 b'default': False,
382 388 b'required': False,
383 389 b'type': b'bool'
384 390 },
385 391 b'nodes': {
386 392 b'required': True,
387 393 b'type': b'list'
388 394 },
389 395 b'tree': {
390 396 b'required': True,
391 397 b'type': b'bytes'
392 398 }
393 399 },
394 400 b'permissions': [
395 401 b'pull'
396 402 ],
397 403 b'recommendedbatchsize': 100000
398 404 },
399 405 b'pushkey': {
400 406 b'args': {
401 407 b'key': {
402 408 b'required': True,
403 409 b'type': b'bytes'
404 410 },
405 411 b'namespace': {
406 412 b'required': True,
407 413 b'type': b'bytes'
408 414 },
409 415 b'new': {
410 416 b'required': True,
411 417 b'type': b'bytes'
412 418 },
413 419 b'old': {
414 420 b'required': True,
415 421 b'type': b'bytes'
416 422 }
417 423 },
418 424 b'permissions': [
419 425 b'push'
420 426 ]
421 427 },
422 428 b'rawstorefiledata': {
423 429 b'args': {
424 430 b'files': {
425 431 b'required': True,
426 432 b'type': b'list'
427 433 },
428 434 b'pathfilter': {
429 435 b'default': None,
430 436 b'required': False,
431 437 b'type': b'list'
432 438 }
433 439 },
434 440 b'permissions': [
435 441 b'pull'
436 442 ]
437 443 }
438 444 },
439 445 b'framingmediatypes': [
440 446 b'application/mercurial-exp-framing-0006'
441 447 ],
442 448 b'pathfilterprefixes': set([
443 449 b'path:',
444 450 b'rootfilesin:'
445 451 ]),
446 452 b'rawrepoformats': [
447 453 b'generaldelta',
448 b'revlogv1'
454 b'revlogv1',
455 b'sparserevlog'
449 456 ]
450 457 }
451 458 },
452 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ 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'
459 b'v1capabilities': b'batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash'
453 460 }
454 461 ]
455 462
456 463 capabilities command returns expected info
457 464
458 465 $ sendhttpv2peerhandshake << EOF
459 466 > command capabilities
460 467 > EOF
461 468 creating http peer for wire protocol version 2
462 469 s> GET /?cmd=capabilities HTTP/1.1\r\n
463 470 s> Accept-Encoding: identity\r\n
464 471 s> vary: X-HgProto-1,X-HgUpgrade-1\r\n
465 472 s> x-hgproto-1: cbor\r\n
466 473 s> x-hgupgrade-1: exp-http-v2-0003\r\n
467 474 s> accept: application/mercurial-0.1\r\n
468 475 s> host: $LOCALIP:$HGPORT\r\n (glob)
469 476 s> user-agent: Mercurial debugwireproto\r\n
470 477 s> \r\n
471 478 s> makefile('rb', None)
472 479 s> HTTP/1.1 200 OK\r\n
473 480 s> Server: testing stub value\r\n
474 481 s> Date: $HTTP_DATE$\r\n
475 482 s> Content-Type: application/mercurial-cbor\r\n
476 483 s> Content-Length: *\r\n (glob)
477 484 s> \r\n
478 s> \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0003\xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x82LgeneraldeltaHrevlogv1Nv1capabilitiesY\x01\xd3batch branchmap $USUAL_BUNDLE2_CAPS$ 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
485 s> \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0003\xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x83LgeneraldeltaHrevlogv1LsparserevlogNv1capabilitiesY\x01\xe0batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
479 486 sending capabilities command
480 487 s> POST /api/exp-http-v2-0003/ro/capabilities HTTP/1.1\r\n
481 488 s> Accept-Encoding: identity\r\n
482 489 s> accept: application/mercurial-exp-framing-0006\r\n
483 490 s> content-type: application/mercurial-exp-framing-0006\r\n
484 491 s> content-length: 63\r\n
485 492 s> host: $LOCALIP:$HGPORT\r\n (glob)
486 493 s> user-agent: Mercurial debugwireproto\r\n
487 494 s> \r\n
488 495 s> \x1c\x00\x00\x01\x00\x01\x01\x82\xa1Pcontentencodings\x81Hidentity\x13\x00\x00\x01\x00\x01\x00\x11\xa1DnameLcapabilities
489 496 s> makefile('rb', None)
490 497 s> HTTP/1.1 200 OK\r\n
491 498 s> Server: testing stub value\r\n
492 499 s> Date: $HTTP_DATE$\r\n
493 500 s> Content-Type: application/mercurial-exp-framing-0006\r\n
494 501 s> Transfer-Encoding: chunked\r\n
495 502 s> \r\n
496 503 s> 11\r\n
497 504 s> \t\x00\x00\x01\x00\x02\x01\x92
498 505 s> Hidentity
499 506 s> \r\n
500 507 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
501 508 s> 13\r\n
502 509 s> \x0b\x00\x00\x01\x00\x02\x041
503 510 s> \xa1FstatusBok
504 511 s> \r\n
505 512 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
506 s> 651\r\n
507 s> I\x06\x00\x01\x00\x02\x041
508 s> \xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x82LgeneraldeltaHrevlogv1
513 s> 65e\r\n
514 s> V\x06\x00\x01\x00\x02\x041
515 s> \xa4Hcommands\xacIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa2Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84IbookmarksGparentsEphaseHrevisionIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x83HlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDpath\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullIfilesdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x84NfirstchangesetHlinknodeGparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDdictIrevisions\xa2Hrequired\xf5DtypeDlistKpermissions\x81DpullTrecommendedbatchsize\x19\xc3PEheads\xa2Dargs\xa1Jpubliconly\xa3Gdefault\xf4Hrequired\xf4DtypeDboolKpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\xa3Gdefault\x80Hrequired\xf4DtypeDlistKpermissions\x81DpullHlistkeys\xa2Dargs\xa1Inamespace\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullFlookup\xa2Dargs\xa1Ckey\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullLmanifestdata\xa3Dargs\xa4Ffields\xa4Gdefault\xd9\x01\x02\x80Hrequired\xf4DtypeCsetKvalidvalues\xd9\x01\x02\x82GparentsHrevisionKhaveparents\xa3Gdefault\xf4Hrequired\xf4DtypeDboolEnodes\xa2Hrequired\xf5DtypeDlistDtree\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpullTrecommendedbatchsize\x1a\x00\x01\x86\xa0Gpushkey\xa2Dargs\xa4Ckey\xa2Hrequired\xf5DtypeEbytesInamespace\xa2Hrequired\xf5DtypeEbytesCnew\xa2Hrequired\xf5DtypeEbytesCold\xa2Hrequired\xf5DtypeEbytesKpermissions\x81DpushPrawstorefiledata\xa2Dargs\xa2Efiles\xa2Hrequired\xf5DtypeDlistJpathfilter\xa3Gdefault\xf6Hrequired\xf4DtypeDlistKpermissions\x81DpullQframingmediatypes\x81X&application/mercurial-exp-framing-0006Rpathfilterprefixes\xd9\x01\x02\x82Epath:Lrootfilesin:Nrawrepoformats\x83LgeneraldeltaHrevlogv1Lsparserevlog
509 516 s> \r\n
510 received frame(size=1609; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
517 received frame(size=1622; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
511 518 s> 8\r\n
512 519 s> \x00\x00\x00\x01\x00\x02\x002
513 520 s> \r\n
514 521 s> 0\r\n
515 522 s> \r\n
516 523 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
517 524 response: gen[
518 525 {
519 526 b'commands': {
520 527 b'branchmap': {
521 528 b'args': {},
522 529 b'permissions': [
523 530 b'pull'
524 531 ]
525 532 },
526 533 b'capabilities': {
527 534 b'args': {},
528 535 b'permissions': [
529 536 b'pull'
530 537 ]
531 538 },
532 539 b'changesetdata': {
533 540 b'args': {
534 541 b'fields': {
535 542 b'default': set([]),
536 543 b'required': False,
537 544 b'type': b'set',
538 545 b'validvalues': set([
539 546 b'bookmarks',
540 547 b'parents',
541 548 b'phase',
542 549 b'revision'
543 550 ])
544 551 },
545 552 b'revisions': {
546 553 b'required': True,
547 554 b'type': b'list'
548 555 }
549 556 },
550 557 b'permissions': [
551 558 b'pull'
552 559 ]
553 560 },
554 561 b'filedata': {
555 562 b'args': {
556 563 b'fields': {
557 564 b'default': set([]),
558 565 b'required': False,
559 566 b'type': b'set',
560 567 b'validvalues': set([
561 568 b'linknode',
562 569 b'parents',
563 570 b'revision'
564 571 ])
565 572 },
566 573 b'haveparents': {
567 574 b'default': False,
568 575 b'required': False,
569 576 b'type': b'bool'
570 577 },
571 578 b'nodes': {
572 579 b'required': True,
573 580 b'type': b'list'
574 581 },
575 582 b'path': {
576 583 b'required': True,
577 584 b'type': b'bytes'
578 585 }
579 586 },
580 587 b'permissions': [
581 588 b'pull'
582 589 ]
583 590 },
584 591 b'filesdata': {
585 592 b'args': {
586 593 b'fields': {
587 594 b'default': set([]),
588 595 b'required': False,
589 596 b'type': b'set',
590 597 b'validvalues': set([
591 598 b'firstchangeset',
592 599 b'linknode',
593 600 b'parents',
594 601 b'revision'
595 602 ])
596 603 },
597 604 b'haveparents': {
598 605 b'default': False,
599 606 b'required': False,
600 607 b'type': b'bool'
601 608 },
602 609 b'pathfilter': {
603 610 b'default': None,
604 611 b'required': False,
605 612 b'type': b'dict'
606 613 },
607 614 b'revisions': {
608 615 b'required': True,
609 616 b'type': b'list'
610 617 }
611 618 },
612 619 b'permissions': [
613 620 b'pull'
614 621 ],
615 622 b'recommendedbatchsize': 50000
616 623 },
617 624 b'heads': {
618 625 b'args': {
619 626 b'publiconly': {
620 627 b'default': False,
621 628 b'required': False,
622 629 b'type': b'bool'
623 630 }
624 631 },
625 632 b'permissions': [
626 633 b'pull'
627 634 ]
628 635 },
629 636 b'known': {
630 637 b'args': {
631 638 b'nodes': {
632 639 b'default': [],
633 640 b'required': False,
634 641 b'type': b'list'
635 642 }
636 643 },
637 644 b'permissions': [
638 645 b'pull'
639 646 ]
640 647 },
641 648 b'listkeys': {
642 649 b'args': {
643 650 b'namespace': {
644 651 b'required': True,
645 652 b'type': b'bytes'
646 653 }
647 654 },
648 655 b'permissions': [
649 656 b'pull'
650 657 ]
651 658 },
652 659 b'lookup': {
653 660 b'args': {
654 661 b'key': {
655 662 b'required': True,
656 663 b'type': b'bytes'
657 664 }
658 665 },
659 666 b'permissions': [
660 667 b'pull'
661 668 ]
662 669 },
663 670 b'manifestdata': {
664 671 b'args': {
665 672 b'fields': {
666 673 b'default': set([]),
667 674 b'required': False,
668 675 b'type': b'set',
669 676 b'validvalues': set([
670 677 b'parents',
671 678 b'revision'
672 679 ])
673 680 },
674 681 b'haveparents': {
675 682 b'default': False,
676 683 b'required': False,
677 684 b'type': b'bool'
678 685 },
679 686 b'nodes': {
680 687 b'required': True,
681 688 b'type': b'list'
682 689 },
683 690 b'tree': {
684 691 b'required': True,
685 692 b'type': b'bytes'
686 693 }
687 694 },
688 695 b'permissions': [
689 696 b'pull'
690 697 ],
691 698 b'recommendedbatchsize': 100000
692 699 },
693 700 b'pushkey': {
694 701 b'args': {
695 702 b'key': {
696 703 b'required': True,
697 704 b'type': b'bytes'
698 705 },
699 706 b'namespace': {
700 707 b'required': True,
701 708 b'type': b'bytes'
702 709 },
703 710 b'new': {
704 711 b'required': True,
705 712 b'type': b'bytes'
706 713 },
707 714 b'old': {
708 715 b'required': True,
709 716 b'type': b'bytes'
710 717 }
711 718 },
712 719 b'permissions': [
713 720 b'push'
714 721 ]
715 722 },
716 723 b'rawstorefiledata': {
717 724 b'args': {
718 725 b'files': {
719 726 b'required': True,
720 727 b'type': b'list'
721 728 },
722 729 b'pathfilter': {
723 730 b'default': None,
724 731 b'required': False,
725 732 b'type': b'list'
726 733 }
727 734 },
728 735 b'permissions': [
729 736 b'pull'
730 737 ]
731 738 }
732 739 },
733 740 b'framingmediatypes': [
734 741 b'application/mercurial-exp-framing-0006'
735 742 ],
736 743 b'pathfilterprefixes': set([
737 744 b'path:',
738 745 b'rootfilesin:'
739 746 ]),
740 747 b'rawrepoformats': [
741 748 b'generaldelta',
742 b'revlogv1'
749 b'revlogv1',
750 b'sparserevlog'
743 751 ]
744 752 }
745 753 ]
746 754 (sent 2 HTTP requests and * bytes; received * bytes in responses) (glob)
747 755
748 756 $ cat error.log
General Comments 0
You need to be logged in to leave comments. Login now