Show More
@@ -175,11 +175,13 b' preferedchunksize = 4096' | |||||
175 |
|
175 | |||
176 | def outdebug(ui, message): |
|
176 | def outdebug(ui, message): | |
177 | """debug regarding output stream (bundling)""" |
|
177 | """debug regarding output stream (bundling)""" | |
178 | ui.debug('bundle2-output: %s\n' % message) |
|
178 | if ui.configbool('devel', 'bundle2.debug', False): | |
|
179 | ui.debug('bundle2-output: %s\n' % message) | |||
179 |
|
180 | |||
180 | def indebug(ui, message): |
|
181 | def indebug(ui, message): | |
181 | """debug on input stream (unbundling)""" |
|
182 | """debug on input stream (unbundling)""" | |
182 | ui.debug('bundle2-input: %s\n' % message) |
|
183 | if ui.configbool('devel', 'bundle2.debug', False): | |
|
184 | ui.debug('bundle2-input: %s\n' % message) | |||
183 |
|
185 | |||
184 | def validateparttype(parttype): |
|
186 | def validateparttype(parttype): | |
185 | """raise ValueError if a parttype contains invalid character""" |
|
187 | """raise ValueError if a parttype contains invalid character""" |
@@ -336,7 +336,7 b' Test debug output' | |||||
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 | |
@@ -350,7 +350,7 b' file content is ok' | |||||
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/' | |
@@ -384,7 +384,7 b' bad parameter name' | |||||
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: | |
@@ -468,7 +468,7 b' Test part' | |||||
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 | |
@@ -549,7 +549,7 b' Test actual unbundling of test part' | |||||
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 | |
@@ -749,7 +749,7 b' Support for changegroup' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now