Show More
@@ -736,6 +736,29 b' class bundlepart(object):' | |||||
736 | if self._generated is not None: |
|
736 | if self._generated is not None: | |
737 | raise RuntimeError('part can only be consumed once') |
|
737 | raise RuntimeError('part can only be consumed once') | |
738 | self._generated = False |
|
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 | #### header |
|
762 | #### header | |
740 | if self.mandatory: |
|
763 | if self.mandatory: | |
741 | parttype = self.type.upper() |
|
764 | parttype = self.type.upper() |
@@ -390,32 +390,39 b' Test part' | |||||
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" | |
|
393 | bundle2-output-part: "test:empty" (advisory) empty payload | |||
393 | bundle2-output: part 0: "test:empty" |
|
394 | bundle2-output: part 0: "test:empty" | |
394 | bundle2-output: header chunk size: 17 |
|
395 | bundle2-output: header chunk size: 17 | |
395 | bundle2-output: closing payload chunk |
|
396 | bundle2-output: closing payload chunk | |
396 | bundle2-output: bundle part: "test:empty" |
|
397 | bundle2-output: bundle part: "test:empty" | |
|
398 | bundle2-output-part: "test:empty" (advisory) empty payload | |||
397 | bundle2-output: part 1: "test:empty" |
|
399 | bundle2-output: part 1: "test:empty" | |
398 | bundle2-output: header chunk size: 17 |
|
400 | bundle2-output: header chunk size: 17 | |
399 | bundle2-output: closing payload chunk |
|
401 | bundle2-output: closing payload chunk | |
400 | bundle2-output: bundle part: "test:song" |
|
402 | bundle2-output: bundle part: "test:song" | |
|
403 | bundle2-output-part: "test:song" (advisory) 178 bytes payload | |||
401 | bundle2-output: part 2: "test:song" |
|
404 | bundle2-output: part 2: "test:song" | |
402 | bundle2-output: header chunk size: 16 |
|
405 | bundle2-output: header chunk size: 16 | |
403 | bundle2-output: payload chunk size: 178 |
|
406 | bundle2-output: payload chunk size: 178 | |
404 | bundle2-output: closing payload chunk |
|
407 | bundle2-output: closing payload chunk | |
405 | bundle2-output: bundle part: "test:debugreply" |
|
408 | bundle2-output: bundle part: "test:debugreply" | |
|
409 | bundle2-output-part: "test:debugreply" (advisory) empty payload | |||
406 | bundle2-output: part 3: "test:debugreply" |
|
410 | bundle2-output: part 3: "test:debugreply" | |
407 | bundle2-output: header chunk size: 22 |
|
411 | bundle2-output: header chunk size: 22 | |
408 | bundle2-output: closing payload chunk |
|
412 | bundle2-output: closing payload chunk | |
409 | bundle2-output: bundle part: "test:math" |
|
413 | bundle2-output: bundle part: "test:math" | |
|
414 | bundle2-output-part: "test:math" (advisory) (params: 2 mandatory 2 advisory) 2 bytes payload | |||
410 | bundle2-output: part 4: "test:math" |
|
415 | bundle2-output: part 4: "test:math" | |
411 | bundle2-output: header chunk size: 43 |
|
416 | bundle2-output: header chunk size: 43 | |
412 | bundle2-output: payload chunk size: 2 |
|
417 | bundle2-output: payload chunk size: 2 | |
413 | bundle2-output: closing payload chunk |
|
418 | bundle2-output: closing payload chunk | |
414 | bundle2-output: bundle part: "test:song" |
|
419 | bundle2-output: bundle part: "test:song" | |
|
420 | bundle2-output-part: "test:song" (advisory) (params: 1 mandatory) empty payload | |||
415 | bundle2-output: part 5: "test:song" |
|
421 | bundle2-output: part 5: "test:song" | |
416 | bundle2-output: header chunk size: 29 |
|
422 | bundle2-output: header chunk size: 29 | |
417 | bundle2-output: closing payload chunk |
|
423 | bundle2-output: closing payload chunk | |
418 | bundle2-output: bundle part: "test:ping" |
|
424 | bundle2-output: bundle part: "test:ping" | |
|
425 | bundle2-output-part: "test:ping" (advisory) empty payload | |||
419 | bundle2-output: part 6: "test:ping" |
|
426 | bundle2-output: part 6: "test:ping" | |
420 | bundle2-output: header chunk size: 16 |
|
427 | bundle2-output: header chunk size: 16 | |
421 | bundle2-output: closing payload chunk |
|
428 | bundle2-output: closing payload chunk | |
@@ -741,6 +748,7 b' Support for changegroup' | |||||
741 | bundle2-output: bundle parameter: |
|
748 | bundle2-output: bundle parameter: | |
742 | bundle2-output: start of parts |
|
749 | bundle2-output: start of parts | |
743 | bundle2-output: bundle part: "changegroup" |
|
750 | bundle2-output: bundle part: "changegroup" | |
|
751 | bundle2-output-part: "changegroup" (advisory) streamed payload | |||
744 | bundle2-output: part 0: "changegroup" |
|
752 | bundle2-output: part 0: "changegroup" | |
745 | bundle2-output: header chunk size: 18 |
|
753 | bundle2-output: header chunk size: 18 | |
746 | bundling: 1/4 changesets (25.00%) |
|
754 | bundling: 1/4 changesets (25.00%) |
General Comments 0
You need to be logged in to leave comments.
Login now