##// END OF EJS Templates
bundle2: add generic debug output regarding generated parts...
Pierre-Yves David -
r25323:21a25fb8 default
parent child Browse files
Show More
@@ -736,6 +736,29 class bundlepart(object):
736 736 if self._generated is not None:
737 737 raise RuntimeError('part can only be consumed once')
738 738 self._generated = False
739
740 if ui.debugflag:
741 msg = ['bundle2-output-part: "%s"' % self.type]
742 if not self.mandatory:
743 msg.append(' (advisory)')
744 nbmp = len(self.mandatoryparams)
745 nbap = len(self.advisoryparams)
746 if nbmp or nbap:
747 msg.append(' (params:')
748 if nbmp:
749 msg.append(' %i mandatory' % nbmp)
750 if nbap:
751 msg.append(' %i advisory' % nbmp)
752 msg.append(')')
753 if not self.data:
754 msg.append(' empty payload')
755 elif util.safehasattr(self.data, 'next'):
756 msg.append(' streamed payload')
757 else:
758 msg.append(' %i bytes payload' % len(self.data))
759 msg.append('\n')
760 ui.debug(''.join(msg))
761
739 762 #### header
740 763 if self.mandatory:
741 764 parttype = self.type.upper()
@@ -390,32 +390,39 Test part
390 390 bundle2-output: bundle parameter:
391 391 bundle2-output: start of parts
392 392 bundle2-output: bundle part: "test:empty"
393 bundle2-output-part: "test:empty" (advisory) empty payload
393 394 bundle2-output: part 0: "test:empty"
394 395 bundle2-output: header chunk size: 17
395 396 bundle2-output: closing payload chunk
396 397 bundle2-output: bundle part: "test:empty"
398 bundle2-output-part: "test:empty" (advisory) empty payload
397 399 bundle2-output: part 1: "test:empty"
398 400 bundle2-output: header chunk size: 17
399 401 bundle2-output: closing payload chunk
400 402 bundle2-output: bundle part: "test:song"
403 bundle2-output-part: "test:song" (advisory) 178 bytes payload
401 404 bundle2-output: part 2: "test:song"
402 405 bundle2-output: header chunk size: 16
403 406 bundle2-output: payload chunk size: 178
404 407 bundle2-output: closing payload chunk
405 408 bundle2-output: bundle part: "test:debugreply"
409 bundle2-output-part: "test:debugreply" (advisory) empty payload
406 410 bundle2-output: part 3: "test:debugreply"
407 411 bundle2-output: header chunk size: 22
408 412 bundle2-output: closing payload chunk
409 413 bundle2-output: bundle part: "test:math"
414 bundle2-output-part: "test:math" (advisory) (params: 2 mandatory 2 advisory) 2 bytes payload
410 415 bundle2-output: part 4: "test:math"
411 416 bundle2-output: header chunk size: 43
412 417 bundle2-output: payload chunk size: 2
413 418 bundle2-output: closing payload chunk
414 419 bundle2-output: bundle part: "test:song"
420 bundle2-output-part: "test:song" (advisory) (params: 1 mandatory) empty payload
415 421 bundle2-output: part 5: "test:song"
416 422 bundle2-output: header chunk size: 29
417 423 bundle2-output: closing payload chunk
418 424 bundle2-output: bundle part: "test:ping"
425 bundle2-output-part: "test:ping" (advisory) empty payload
419 426 bundle2-output: part 6: "test:ping"
420 427 bundle2-output: header chunk size: 16
421 428 bundle2-output: closing payload chunk
@@ -741,6 +748,7 Support for changegroup
741 748 bundle2-output: bundle parameter:
742 749 bundle2-output: start of parts
743 750 bundle2-output: bundle part: "changegroup"
751 bundle2-output-part: "changegroup" (advisory) streamed payload
744 752 bundle2-output: part 0: "changegroup"
745 753 bundle2-output: header chunk size: 18
746 754 bundling: 1/4 changesets (25.00%)
General Comments 0
You need to be logged in to leave comments. Login now