Show More
@@ -1060,9 +1060,12 b' class unbundlepart(unpackermixin):' | |||
|
1060 | 1060 | data = self._payloadstream.read() |
|
1061 | 1061 | else: |
|
1062 | 1062 | data = self._payloadstream.read(size) |
|
1063 | self._pos += len(data) | |
|
1063 | 1064 | if size is None or len(data) < size: |
|
1065 | if not self.consumed and self._pos: | |
|
1066 | self.ui.debug('bundle2-input-part: total payload size %i\n' | |
|
1067 | % self._pos) | |
|
1064 | 1068 | self.consumed = True |
|
1065 | self._pos += len(data) | |
|
1066 | 1069 | return data |
|
1067 | 1070 | |
|
1068 | 1071 | def tell(self): |
@@ -500,6 +500,7 b' Test part' | |||
|
500 | 500 | advisory: 0 |
|
501 | 501 | bundle2-input: payload chunk size: 178 |
|
502 | 502 | bundle2-input: payload chunk size: 0 |
|
503 | bundle2-input-part: total payload size 178 | |
|
503 | 504 | payload: 178 bytes |
|
504 | 505 | bundle2-input: part header size: 22 |
|
505 | 506 | bundle2-input: part type: "test:debugreply" |
@@ -519,6 +520,7 b' Test part' | |||
|
519 | 520 | advisory: 1 |
|
520 | 521 | bundle2-input: payload chunk size: 2 |
|
521 | 522 | bundle2-input: payload chunk size: 0 |
|
523 | bundle2-input-part: total payload size 2 | |
|
522 | 524 | payload: 2 bytes |
|
523 | 525 | bundle2-input: part header size: 29 |
|
524 | 526 | bundle2-input: part type: "test:song" |
@@ -575,6 +577,7 b' Process the bundle' | |||
|
575 | 577 | The choir starts singing: |
|
576 | 578 | bundle2-input: payload chunk size: 178 |
|
577 | 579 | bundle2-input: payload chunk size: 0 |
|
580 | bundle2-input-part: total payload size 178 | |
|
578 | 581 | Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko |
|
579 | 582 | Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko |
|
580 | 583 | Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. |
@@ -594,6 +597,7 b' Process the bundle' | |||
|
594 | 597 | bundle2-input-part: "test:math" (advisory) (params: 2 mandatory 2 advisory) unsupported-type |
|
595 | 598 | bundle2-input: payload chunk size: 2 |
|
596 | 599 | bundle2-input: payload chunk size: 0 |
|
600 | bundle2-input-part: total payload size 2 | |
|
597 | 601 | bundle2-input: part header size: 29 |
|
598 | 602 | bundle2-input: part type: "test:song" |
|
599 | 603 | bundle2-input: part id: "5" |
General Comments 0
You need to be logged in to leave comments.
Login now