##// END OF EJS Templates
test-bundle: split some variant in there own section...
marmoute -
r49491:ff0233f3 default
parent child Browse files
Show More
@@ -1,668 +1,710
1 1 $ cat << EOF >> $HGRCPATH
2 2 > [ui]
3 3 > interactive=yes
4 4 > EOF
5 5
6 6 $ hg init debugrevlog
7 7 $ cd debugrevlog
8 8 $ echo a > a
9 9 $ hg ci -Am adda
10 10 adding a
11 11 $ hg rm .
12 12 removing a
13 13 $ hg ci -Am make-it-empty
14 14 $ hg revert --all -r 0
15 15 adding a
16 16 $ hg ci -Am make-it-full
17 17 #if reporevlogstore
18 18 $ hg debugrevlog -c
19 19 format : 1
20 20 flags : inline
21 21
22 22 revisions : 3
23 23 merges : 0 ( 0.00%)
24 24 normal : 3 (100.00%)
25 25 revisions : 3
26 26 empty : 0 ( 0.00%)
27 27 text : 0 (100.00%)
28 28 delta : 0 (100.00%)
29 29 snapshot : 3 (100.00%)
30 30 lvl-0 : 3 (100.00%)
31 31 deltas : 0 ( 0.00%)
32 32 revision size : 191
33 33 snapshot : 191 (100.00%)
34 34 lvl-0 : 191 (100.00%)
35 35 deltas : 0 ( 0.00%)
36 36
37 37 chunks : 3
38 38 0x75 (u) : 3 (100.00%)
39 39 chunks size : 191
40 40 0x75 (u) : 191 (100.00%)
41 41
42 42 avg chain length : 0
43 43 max chain length : 0
44 44 max chain reach : 67
45 45 compression ratio : 0
46 46
47 47 uncompressed data size (min/max/avg) : 57 / 66 / 62
48 48 full revision size (min/max/avg) : 58 / 67 / 63
49 49 inter-snapshot size (min/max/avg) : 0 / 0 / 0
50 50 delta size (min/max/avg) : 0 / 0 / 0
51 51 $ hg debugrevlog -m
52 52 format : 1
53 53 flags : inline, generaldelta
54 54
55 55 revisions : 3
56 56 merges : 0 ( 0.00%)
57 57 normal : 3 (100.00%)
58 58 revisions : 3
59 59 empty : 1 (33.33%)
60 60 text : 1 (100.00%)
61 61 delta : 0 ( 0.00%)
62 62 snapshot : 2 (66.67%)
63 63 lvl-0 : 2 (66.67%)
64 64 deltas : 0 ( 0.00%)
65 65 revision size : 88
66 66 snapshot : 88 (100.00%)
67 67 lvl-0 : 88 (100.00%)
68 68 deltas : 0 ( 0.00%)
69 69
70 70 chunks : 3
71 71 empty : 1 (33.33%)
72 72 0x75 (u) : 2 (66.67%)
73 73 chunks size : 88
74 74 empty : 0 ( 0.00%)
75 75 0x75 (u) : 88 (100.00%)
76 76
77 77 avg chain length : 0
78 78 max chain length : 0
79 79 max chain reach : 44
80 80 compression ratio : 0
81 81
82 82 uncompressed data size (min/max/avg) : 0 / 43 / 28
83 83 full revision size (min/max/avg) : 44 / 44 / 44
84 84 inter-snapshot size (min/max/avg) : 0 / 0 / 0
85 85 delta size (min/max/avg) : 0 / 0 / 0
86 86 $ hg debugrevlog a
87 87 format : 1
88 88 flags : inline, generaldelta
89 89
90 90 revisions : 1
91 91 merges : 0 ( 0.00%)
92 92 normal : 1 (100.00%)
93 93 revisions : 1
94 94 empty : 0 ( 0.00%)
95 95 text : 0 (100.00%)
96 96 delta : 0 (100.00%)
97 97 snapshot : 1 (100.00%)
98 98 lvl-0 : 1 (100.00%)
99 99 deltas : 0 ( 0.00%)
100 100 revision size : 3
101 101 snapshot : 3 (100.00%)
102 102 lvl-0 : 3 (100.00%)
103 103 deltas : 0 ( 0.00%)
104 104
105 105 chunks : 1
106 106 0x75 (u) : 1 (100.00%)
107 107 chunks size : 3
108 108 0x75 (u) : 3 (100.00%)
109 109
110 110 avg chain length : 0
111 111 max chain length : 0
112 112 max chain reach : 3
113 113 compression ratio : 0
114 114
115 115 uncompressed data size (min/max/avg) : 2 / 2 / 2
116 116 full revision size (min/max/avg) : 3 / 3 / 3
117 117 inter-snapshot size (min/max/avg) : 0 / 0 / 0
118 118 delta size (min/max/avg) : 0 / 0 / 0
119 119 #endif
120 120
121 121 Test debugindex, with and without the --verbose/--debug flag
122 122 $ hg debugrevlogindex a
123 123 rev linkrev nodeid p1 p2
124 124 0 0 b789fdd96dc2 000000000000 000000000000
125 125
126 126 #if no-reposimplestore
127 127 $ hg --verbose debugrevlogindex a
128 128 rev offset length linkrev nodeid p1 p2
129 129 0 0 3 0 b789fdd96dc2 000000000000 000000000000
130 130
131 131 $ hg --debug debugrevlogindex a
132 132 rev offset length linkrev nodeid p1 p2
133 133 0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
134 134 #endif
135 135
136 136 $ hg debugrevlogindex -f 1 a
137 137 rev flag size link p1 p2 nodeid
138 138 0 0000 2 0 -1 -1 b789fdd96dc2
139 139
140 140 #if no-reposimplestore
141 141 $ hg --verbose debugrevlogindex -f 1 a
142 142 rev flag offset length size link p1 p2 nodeid
143 143 0 0000 0 3 2 0 -1 -1 b789fdd96dc2
144 144
145 145 $ hg --debug debugrevlogindex -f 1 a
146 146 rev flag offset length size link p1 p2 nodeid
147 147 0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
148 148 #endif
149 149
150 150 $ hg debugindex -c
151 151 rev linkrev nodeid p1 p2
152 152 0 0 07f494440405 000000000000 000000000000
153 153 1 1 8cccb4b5fec2 07f494440405 000000000000
154 154 2 2 b1e228c512c5 8cccb4b5fec2 000000000000
155 155 $ hg debugindex -c --debug
156 156 rev linkrev nodeid p1 p2
157 157 0 0 07f4944404050f47db2e5c5071e0e84e7a27bba9 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
158 158 1 1 8cccb4b5fec20cafeb99dd01c26d4dee8ea4388a 07f4944404050f47db2e5c5071e0e84e7a27bba9 0000000000000000000000000000000000000000
159 159 2 2 b1e228c512c5d7066d70562ed839c3323a62d6d2 8cccb4b5fec20cafeb99dd01c26d4dee8ea4388a 0000000000000000000000000000000000000000
160 160 $ hg debugindex -m
161 161 rev linkrev nodeid p1 p2
162 162 0 0 a0c8bcbbb45c 000000000000 000000000000
163 163 1 1 57faf8a737ae a0c8bcbbb45c 000000000000
164 164 2 2 a35b10320954 57faf8a737ae 000000000000
165 165 $ hg debugindex -m --debug
166 166 rev linkrev nodeid p1 p2
167 167 0 0 a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
168 168 1 1 57faf8a737ae7faf490582941a82319ba6529dca a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 0000000000000000000000000000000000000000
169 169 2 2 a35b103209548032201c16c7688cb2657f037a38 57faf8a737ae7faf490582941a82319ba6529dca 0000000000000000000000000000000000000000
170 170 $ hg debugindex a
171 171 rev linkrev nodeid p1 p2
172 172 0 0 b789fdd96dc2 000000000000 000000000000
173 173 $ hg debugindex --debug a
174 174 rev linkrev nodeid p1 p2
175 175 0 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
176 176
177 177 debugdelta chain basic output
178 178
179 179 #if reporevlogstore pure
180 180 $ hg debugindexstats
181 181 abort: debugindexstats only works with native code
182 182 [255]
183 183 #endif
184 184 #if reporevlogstore no-pure
185 185 $ hg debugindexstats
186 186 node trie capacity: 4
187 187 node trie count: 2
188 188 node trie depth: 1
189 189 node trie last rev scanned: -1 (no-rust !)
190 190 node trie last rev scanned: 3 (rust !)
191 191 node trie lookups: 4 (no-rust !)
192 192 node trie lookups: 2 (rust !)
193 193 node trie misses: 1
194 194 node trie splits: 1
195 195 revs in memory: 3
196 196 #endif
197 197
198 198 #if reporevlogstore no-pure
199 199 $ hg debugdeltachain -m
200 200 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks
201 201 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1
202 202 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1
203 203 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1
204 204
205 205 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen}\n'
206 206 0 1 1
207 207 1 2 1
208 208 2 3 1
209 209
210 210 $ hg debugdeltachain -m -Tjson
211 211 [
212 212 {
213 213 "chainid": 1,
214 214 "chainlen": 1,
215 215 "chainratio": 1.02325581395, (no-py3 !)
216 216 "chainratio": 1.0232558139534884, (py3 !)
217 217 "chainsize": 44,
218 218 "compsize": 44,
219 219 "deltatype": "base",
220 220 "extradist": 0,
221 221 "extraratio": 0.0,
222 222 "largestblock": 44,
223 223 "lindist": 44,
224 224 "prevrev": -1,
225 225 "readdensity": 1.0,
226 226 "readsize": 44,
227 227 "rev": 0,
228 228 "srchunks": 1,
229 229 "uncompsize": 43
230 230 },
231 231 {
232 232 "chainid": 2,
233 233 "chainlen": 1,
234 234 "chainratio": 0,
235 235 "chainsize": 0,
236 236 "compsize": 0,
237 237 "deltatype": "base",
238 238 "extradist": 0,
239 239 "extraratio": 0,
240 240 "largestblock": 0,
241 241 "lindist": 0,
242 242 "prevrev": -1,
243 243 "readdensity": 1,
244 244 "readsize": 0,
245 245 "rev": 1,
246 246 "srchunks": 1,
247 247 "uncompsize": 0
248 248 },
249 249 {
250 250 "chainid": 3,
251 251 "chainlen": 1,
252 252 "chainratio": 1.02325581395, (no-py3 !)
253 253 "chainratio": 1.0232558139534884, (py3 !)
254 254 "chainsize": 44,
255 255 "compsize": 44,
256 256 "deltatype": "base",
257 257 "extradist": 0,
258 258 "extraratio": 0.0,
259 259 "largestblock": 44,
260 260 "lindist": 44,
261 261 "prevrev": -1,
262 262 "readdensity": 1.0,
263 263 "readsize": 44,
264 264 "rev": 2,
265 265 "srchunks": 1,
266 266 "uncompsize": 43
267 267 }
268 268 ]
269 269
270 270 debugdelta chain with sparse read enabled
271 271
272 272 $ cat >> $HGRCPATH <<EOF
273 273 > [experimental]
274 274 > sparse-read = True
275 275 > EOF
276 276 $ hg debugdeltachain -m
277 277 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks
278 278 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1
279 279 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1
280 280 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1
281 281
282 282 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n'
283 283 0 1 1 44 44 1.0
284 284 1 2 1 0 0 1
285 285 2 3 1 44 44 1.0
286 286
287 287 $ hg debugdeltachain -m -Tjson
288 288 [
289 289 {
290 290 "chainid": 1,
291 291 "chainlen": 1,
292 292 "chainratio": 1.02325581395, (no-py3 !)
293 293 "chainratio": 1.0232558139534884, (py3 !)
294 294 "chainsize": 44,
295 295 "compsize": 44,
296 296 "deltatype": "base",
297 297 "extradist": 0,
298 298 "extraratio": 0.0,
299 299 "largestblock": 44,
300 300 "lindist": 44,
301 301 "prevrev": -1,
302 302 "readdensity": 1.0,
303 303 "readsize": 44,
304 304 "rev": 0,
305 305 "srchunks": 1,
306 306 "uncompsize": 43
307 307 },
308 308 {
309 309 "chainid": 2,
310 310 "chainlen": 1,
311 311 "chainratio": 0,
312 312 "chainsize": 0,
313 313 "compsize": 0,
314 314 "deltatype": "base",
315 315 "extradist": 0,
316 316 "extraratio": 0,
317 317 "largestblock": 0,
318 318 "lindist": 0,
319 319 "prevrev": -1,
320 320 "readdensity": 1,
321 321 "readsize": 0,
322 322 "rev": 1,
323 323 "srchunks": 1,
324 324 "uncompsize": 0
325 325 },
326 326 {
327 327 "chainid": 3,
328 328 "chainlen": 1,
329 329 "chainratio": 1.02325581395, (no-py3 !)
330 330 "chainratio": 1.0232558139534884, (py3 !)
331 331 "chainsize": 44,
332 332 "compsize": 44,
333 333 "deltatype": "base",
334 334 "extradist": 0,
335 335 "extraratio": 0.0,
336 336 "largestblock": 44,
337 337 "lindist": 44,
338 338 "prevrev": -1,
339 339 "readdensity": 1.0,
340 340 "readsize": 44,
341 341 "rev": 2,
342 342 "srchunks": 1,
343 343 "uncompsize": 43
344 344 }
345 345 ]
346 346
347 347 $ printf "This test checks things.\n" >> a
348 348 $ hg ci -m a
349 349 $ hg branch other
350 350 marked working directory as branch other
351 351 (branches are permanent and global, did you want a bookmark?)
352 352 $ for i in `$TESTDIR/seq.py 5`; do
353 353 > printf "shorter ${i}" >> a
354 354 > hg ci -m "a other:$i"
355 355 > hg up -q default
356 356 > printf "for the branch default we want longer chains: ${i}" >> a
357 357 > hg ci -m "a default:$i"
358 358 > hg up -q other
359 359 > done
360 360 $ hg debugdeltachain a -T '{rev} {srchunks}\n' \
361 361 > --config experimental.sparse-read.density-threshold=0.50 \
362 362 > --config experimental.sparse-read.min-gap-size=0
363 363 0 1
364 364 1 1
365 365 2 1
366 366 3 1
367 367 4 1
368 368 5 1
369 369 6 1
370 370 7 1
371 371 8 1
372 372 9 1
373 373 10 2 (no-zstd !)
374 374 10 1 (zstd !)
375 375 11 1
376 376 $ hg --config extensions.strip= strip --no-backup -r 1
377 377 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
378 378
379 379 Test max chain len
380 380 $ cat >> $HGRCPATH << EOF
381 381 > [format]
382 382 > maxchainlen=4
383 383 > EOF
384 384
385 385 $ printf "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a
386 386 $ hg ci -m a
387 387 $ printf "b\n" >> a
388 388 $ hg ci -m a
389 389 $ printf "c\n" >> a
390 390 $ hg ci -m a
391 391 $ printf "d\n" >> a
392 392 $ hg ci -m a
393 393 $ printf "e\n" >> a
394 394 $ hg ci -m a
395 395 $ printf "f\n" >> a
396 396 $ hg ci -m a
397 397 $ printf 'g\n' >> a
398 398 $ hg ci -m a
399 399 $ printf 'h\n' >> a
400 400 $ hg ci -m a
401 401
402 402 $ hg debugrevlog -d a
403 403 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen
404 404 0 -1 -1 0 ??? 0 0 0 0 ??? ???? ? 1 0 (glob)
405 405 1 0 -1 ??? ??? 0 0 0 0 ??? ???? ? 1 1 (glob)
406 406 2 1 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob)
407 407 3 2 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob)
408 408 4 3 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 4 (glob)
409 409 5 4 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 0 (glob)
410 410 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob)
411 411 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob)
412 412 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob)
413 413 #endif
414 414
415 415 Test debuglocks command:
416 416
417 417 $ hg debuglocks
418 418 lock: free
419 419 wlock: free
420 420
421 421 * Test setting the lock
422 422
423 423 waitlock <file> will wait for file to be created. If it isn't in a reasonable
424 424 amount of time, displays error message and returns 1
425 425 $ waitlock() {
426 426 > start=`date +%s`
427 427 > timeout=5
428 428 > while [ \( ! -f $1 \) -a \( ! -L $1 \) ]; do
429 429 > now=`date +%s`
430 430 > if [ "`expr $now - $start`" -gt $timeout ]; then
431 431 > echo "timeout: $1 was not created in $timeout seconds"
432 432 > return 1
433 433 > fi
434 434 > sleep 0.1
435 435 > done
436 436 > }
437 437 $ dolock() {
438 438 > {
439 439 > waitlock .hg/unlock
440 440 > rm -f .hg/unlock
441 441 > echo y
442 442 > } | hg debuglocks "$@" > /dev/null
443 443 > }
444 444 $ dolock -s &
445 445 $ waitlock .hg/store/lock
446 446
447 447 $ hg debuglocks
448 448 lock: user *, process * (*s) (glob)
449 449 wlock: free
450 450 [1]
451 451 $ touch .hg/unlock
452 452 $ wait
453 453 $ [ -f .hg/store/lock ] || echo "There is no lock"
454 454 There is no lock
455 455
456 456 * Test setting the wlock
457 457
458 458 $ dolock -S &
459 459 $ waitlock .hg/wlock
460 460
461 461 $ hg debuglocks
462 462 lock: free
463 463 wlock: user *, process * (*s) (glob)
464 464 [1]
465 465 $ touch .hg/unlock
466 466 $ wait
467 467 $ [ -f .hg/wlock ] || echo "There is no wlock"
468 468 There is no wlock
469 469
470 470 * Test setting both locks
471 471
472 472 $ dolock -Ss &
473 473 $ waitlock .hg/wlock && waitlock .hg/store/lock
474 474
475 475 $ hg debuglocks
476 476 lock: user *, process * (*s) (glob)
477 477 wlock: user *, process * (*s) (glob)
478 478 [2]
479 479
480 480 * Test failing to set a lock
481 481
482 482 $ hg debuglocks -s
483 483 abort: lock is already held
484 484 [255]
485 485
486 486 $ hg debuglocks -S
487 487 abort: wlock is already held
488 488 [255]
489 489
490 490 $ touch .hg/unlock
491 491 $ wait
492 492
493 493 $ hg debuglocks
494 494 lock: free
495 495 wlock: free
496 496
497 497 * Test forcing the lock
498 498
499 499 $ dolock -s &
500 500 $ waitlock .hg/store/lock
501 501
502 502 $ hg debuglocks
503 503 lock: user *, process * (*s) (glob)
504 504 wlock: free
505 505 [1]
506 506
507 507 $ hg debuglocks -L
508 508
509 509 $ hg debuglocks
510 510 lock: free
511 511 wlock: free
512 512
513 513 $ touch .hg/unlock
514 514 $ wait
515 515
516 516 * Test forcing the wlock
517 517
518 518 $ dolock -S &
519 519 $ waitlock .hg/wlock
520 520
521 521 $ hg debuglocks
522 522 lock: free
523 523 wlock: user *, process * (*s) (glob)
524 524 [1]
525 525
526 526 $ hg debuglocks -W
527 527
528 528 $ hg debuglocks
529 529 lock: free
530 530 wlock: free
531 531
532 532 $ touch .hg/unlock
533 533 $ wait
534 534
535 535 Test WdirUnsupported exception
536 536
537 537 $ hg debugdata -c ffffffffffffffffffffffffffffffffffffffff
538 538 abort: working directory revision cannot be specified
539 539 [255]
540 540
541 541 Test cache warming command
542 542
543 543 $ rm -rf .hg/cache/
544 544 $ hg debugupdatecaches --debug
545 545 updating the branch cache
546 546 $ ls -r .hg/cache/*
547 547 .hg/cache/tags2-served
548 548 .hg/cache/tags2
549 549 .hg/cache/rbc-revs-v1
550 550 .hg/cache/rbc-names-v1
551 551 .hg/cache/hgtagsfnodes1
552 552 .hg/cache/branch2-visible-hidden
553 553 .hg/cache/branch2-visible
554 554 .hg/cache/branch2-served.hidden
555 555 .hg/cache/branch2-served
556 556 .hg/cache/branch2-immutable
557 557 .hg/cache/branch2-base
558 558
559 559 Test debugcolor
560 560
561 561 #if no-windows
562 562 $ hg debugcolor --style --color always | egrep 'mode|style|log\.'
563 563 color mode: 'ansi'
564 564 available style:
565 565 \x1b[0;33mlog.changeset\x1b[0m: \x1b[0;33myellow\x1b[0m (esc)
566 566 #endif
567 567
568 568 $ hg debugcolor --style --color never
569 569 color mode: None
570 570 available style:
571 571
572 572 $ cd ..
573 573
574 574 Test internal debugstacktrace command
575 575
576 576 $ cat > debugstacktrace.py << EOF
577 577 > from __future__ import absolute_import
578 578 > from mercurial import (
579 579 > util,
580 580 > )
581 581 > from mercurial.utils import (
582 582 > procutil,
583 583 > )
584 584 > def f():
585 585 > util.debugstacktrace(f=procutil.stdout)
586 586 > g()
587 587 > def g():
588 588 > util.dst(b'hello from g\\n', skip=1)
589 589 > h()
590 590 > def h():
591 591 > util.dst(b'hi ...\\nfrom h hidden in g', 1, depth=2)
592 592 > f()
593 593 > EOF
594 594 $ "$PYTHON" debugstacktrace.py
595 595 stacktrace at:
596 596 *debugstacktrace.py:16 in * (glob)
597 597 *debugstacktrace.py:9 in f (glob)
598 598 hello from g at:
599 599 *debugstacktrace.py:16 in * (glob)
600 600 *debugstacktrace.py:10 in f (glob)
601 601 hi ...
602 602 from h hidden in g at:
603 603 *debugstacktrace.py:10 in f (glob)
604 604 *debugstacktrace.py:13 in g (glob)
605 605
606 606 Test debugcapabilities command:
607 607
608 608 $ hg debugcapabilities ./debugrevlog/
609 609 Main capabilities:
610 610 branchmap
611 611 $USUAL_BUNDLE2_CAPS$
612 612 getbundle
613 613 known
614 614 lookup
615 615 pushkey
616 616 unbundle
617 617 Bundle2 capabilities:
618 618 HG20
619 619 bookmarks
620 620 changegroup
621 621 01
622 622 02
623 623 checkheads
624 624 related
625 625 digests
626 626 md5
627 627 sha1
628 628 sha512
629 629 error
630 630 abort
631 631 unsupportedcontent
632 632 pushraced
633 633 pushkey
634 634 hgtagsfnodes
635 635 listkeys
636 636 phases
637 637 heads
638 638 pushkey
639 639 remote-changegroup
640 640 http
641 641 https
642 642 stream
643 643 v2
644 644
645 645 Test debugpeer
646 646
647 647 $ hg debugpeer ssh://user@dummy/debugrevlog
648 648 url: ssh://user@dummy/debugrevlog
649 649 local: no
650 650 pushable: yes
651 651
652 #if rust
653
652 654 $ hg --debug debugpeer ssh://user@dummy/debugrevlog
653 655 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re)
654 656 devel-peer-request: hello+between
655 657 devel-peer-request: pairs: 81 bytes
656 658 sending hello command
657 659 sending between command
658 remote: 444 (no-rust !)
659 remote: 463 (rust !)
660 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-rust !)
661 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,persistent-nodemap,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (rust !)
660 remote: 463
661 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,persistent-nodemap,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
662 662 remote: 1
663 663 devel-peer-request: protocaps
664 664 devel-peer-request: caps: * bytes (glob)
665 665 sending protocaps command
666 666 url: ssh://user@dummy/debugrevlog
667 667 local: no
668 668 pushable: yes
669
670 #endif
671
672 #if no-rust zstd
673
674 $ hg --debug debugpeer ssh://user@dummy/debugrevlog
675 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re)
676 devel-peer-request: hello+between
677 devel-peer-request: pairs: 81 bytes
678 sending hello command
679 sending between command
680 remote: 444
681 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
682 remote: 1
683 devel-peer-request: protocaps
684 devel-peer-request: caps: * bytes (glob)
685 sending protocaps command
686 url: ssh://user@dummy/debugrevlog
687 local: no
688 pushable: yes
689
690 #endif
691
692 #if no-rust no-zstd
693
694 $ hg --debug debugpeer ssh://user@dummy/debugrevlog
695 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re)
696 devel-peer-request: hello+between
697 devel-peer-request: pairs: 81 bytes
698 sending hello command
699 sending between command
700 remote: 444
701 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
702 remote: 1
703 devel-peer-request: protocaps
704 devel-peer-request: caps: * bytes (glob)
705 sending protocaps command
706 url: ssh://user@dummy/debugrevlog
707 local: no
708 pushable: yes
709
710 #endif
General Comments 0
You need to be logged in to leave comments. Login now