Mercurial > hg > mercurial-source
comparison tests/test-bundle2-format.t @ 25820:7c60a42265fb
bundle2: hide bundle2 stream debug under a config flag
The old output is very verbose and unsuitable for general debug level. It is
however very useful for debugging bundle2 generation or consumption issues. All
this verbose ouput is hidden under a 'devel.bundle2.debug' flag.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 26 May 2015 23:06:17 -0700 |
parents | 76cba1ecf55f |
children | 46727fea7a00 |
comparison
equal
deleted
inserted
replaced
25819:8f7137a85a0e | 25820:7c60a42265fb |
---|---|
334 Test debug output | 334 Test debug output |
335 --------------------------------------------------- | 335 --------------------------------------------------- |
336 | 336 |
337 bundling debug | 337 bundling debug |
338 | 338 |
339 $ hg bundle2 --debug --param 'e|! 7/=babar%#==tutu' --param simple ../out.hg2 --config progress.debug=true | 339 $ hg bundle2 --debug --param 'e|! 7/=babar%#==tutu' --param simple ../out.hg2 --config progress.debug=true --config devel.bundle2.debug=true |
340 bundle2-output-bundle: "HG20", (2 params) 0 parts total | 340 bundle2-output-bundle: "HG20", (2 params) 0 parts total |
341 bundle2-output: start emission of HG20 stream | 341 bundle2-output: start emission of HG20 stream |
342 bundle2-output: bundle parameter: e%7C%21%207/=babar%25%23%3D%3Dtutu simple | 342 bundle2-output: bundle parameter: e%7C%21%207/=babar%25%23%3D%3Dtutu simple |
343 bundle2-output: start of parts | 343 bundle2-output: start of parts |
344 bundle2-output: end of bundle | 344 bundle2-output: end of bundle |
348 $ cat ../out.hg2 | 348 $ cat ../out.hg2 |
349 HG20\x00\x00\x00)e%7C%21%207/=babar%25%23%3D%3Dtutu simple\x00\x00\x00\x00 (no-eol) (esc) | 349 HG20\x00\x00\x00)e%7C%21%207/=babar%25%23%3D%3Dtutu simple\x00\x00\x00\x00 (no-eol) (esc) |
350 | 350 |
351 unbundling debug | 351 unbundling debug |
352 | 352 |
353 $ hg statbundle2 --debug --config progress.debug=true < ../out.hg2 | 353 $ hg statbundle2 --debug --config progress.debug=true --config devel.bundle2.debug=true < ../out.hg2 |
354 bundle2-input: start processing of HG20 stream | 354 bundle2-input: start processing of HG20 stream |
355 bundle2-input: reading bundle2 stream parameters | 355 bundle2-input: reading bundle2 stream parameters |
356 bundle2-input: ignoring unknown parameter 'e|! 7/' | 356 bundle2-input: ignoring unknown parameter 'e|! 7/' |
357 bundle2-input: ignoring unknown parameter 'simple' | 357 bundle2-input: ignoring unknown parameter 'simple' |
358 options count: 2 | 358 options count: 2 |
382 | 382 |
383 | 383 |
384 Test part | 384 Test part |
385 ================= | 385 ================= |
386 | 386 |
387 $ hg bundle2 --parts ../parts.hg2 --debug --config progress.debug=true | 387 $ hg bundle2 --parts ../parts.hg2 --debug --config progress.debug=true --config devel.bundle2.debug=true |
388 bundle2-output-bundle: "HG20", 7 parts total | 388 bundle2-output-bundle: "HG20", 7 parts total |
389 bundle2-output: start emission of HG20 stream | 389 bundle2-output: start emission of HG20 stream |
390 bundle2-output: bundle parameter: | 390 bundle2-output: bundle parameter: |
391 bundle2-output: start of parts | 391 bundle2-output: start of parts |
392 bundle2-output: bundle part: "test:empty" | 392 bundle2-output: bundle part: "test:empty" |
466 mandatory: 0 | 466 mandatory: 0 |
467 advisory: 0 | 467 advisory: 0 |
468 payload: 0 bytes | 468 payload: 0 bytes |
469 parts count: 7 | 469 parts count: 7 |
470 | 470 |
471 $ hg statbundle2 --debug --config progress.debug=true < ../parts.hg2 | 471 $ hg statbundle2 --debug --config progress.debug=true --config devel.bundle2.debug=true < ../parts.hg2 |
472 bundle2-input: start processing of HG20 stream | 472 bundle2-input: start processing of HG20 stream |
473 bundle2-input: reading bundle2 stream parameters | 473 bundle2-input: reading bundle2 stream parameters |
474 options count: 0 | 474 options count: 0 |
475 bundle2-input: start extraction of bundle2 parts | 475 bundle2-input: start extraction of bundle2 parts |
476 bundle2-input: part header size: 17 | 476 bundle2-input: part header size: 17 |
547 Test actual unbundling of test part | 547 Test actual unbundling of test part |
548 ======================================= | 548 ======================================= |
549 | 549 |
550 Process the bundle | 550 Process the bundle |
551 | 551 |
552 $ hg unbundle2 --debug --config progress.debug=true < ../parts.hg2 | 552 $ hg unbundle2 --debug --config progress.debug=true --config devel.bundle2.debug=true < ../parts.hg2 |
553 bundle2-input: start processing of HG20 stream | 553 bundle2-input: start processing of HG20 stream |
554 bundle2-input: reading bundle2 stream parameters | 554 bundle2-input: reading bundle2 stream parameters |
555 bundle2-input-bundle: with-transaction | 555 bundle2-input-bundle: with-transaction |
556 bundle2-input: start extraction of bundle2 parts | 556 bundle2-input: start extraction of bundle2 parts |
557 bundle2-input: part header size: 17 | 557 bundle2-input: part header size: 17 |
747 o 1:cd010b8cd998 draft Nicolas Dumazet <nicdumz.commits@gmail.com> A | 747 o 1:cd010b8cd998 draft Nicolas Dumazet <nicdumz.commits@gmail.com> A |
748 | 748 |
749 @ 0:3903775176ed draft test a | 749 @ 0:3903775176ed draft test a |
750 | 750 |
751 | 751 |
752 $ hg bundle2 --debug --config progress.debug=true --rev '8+7+5+4' ../rev.hg2 | 752 $ hg bundle2 --debug --config progress.debug=true --config devel.bundle2.debug=true --rev '8+7+5+4' ../rev.hg2 |
753 4 changesets found | 753 4 changesets found |
754 list of changesets: | 754 list of changesets: |
755 32af7686d403cf45b5d95f2d70cebea587ac806a | 755 32af7686d403cf45b5d95f2d70cebea587ac806a |
756 9520eea781bcca16c1e15acc0ba14335a0e8e5ba | 756 9520eea781bcca16c1e15acc0ba14335a0e8e5ba |
757 eea13746799a9e0bfd88f29d3c2e9dc9389f524f | 757 eea13746799a9e0bfd88f29d3c2e9dc9389f524f |