##// END OF EJS Templates
bundle2: handle new line in 'outdebug' function...
Pierre-Yves David -
r25315:e28245b0 default
parent child Browse files
Show More
@@ -175,7 +175,7 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' % message)
178 ui.debug('bundle2-output: %s\n' % message)
179
179
180 def validateparttype(parttype):
180 def validateparttype(parttype):
181 """raise ValueError if a parttype contains invalid character"""
181 """raise ValueError if a parttype contains invalid character"""
@@ -468,20 +468,20 b' class bundle20(object):'
468
468
469 # methods used to generate the bundle2 stream
469 # methods used to generate the bundle2 stream
470 def getchunks(self):
470 def getchunks(self):
471 outdebug(self.ui, 'start emission of %s stream\n' % self._magicstring)
471 outdebug(self.ui, 'start emission of %s stream' % self._magicstring)
472 yield self._magicstring
472 yield self._magicstring
473 param = self._paramchunk()
473 param = self._paramchunk()
474 outdebug(self.ui, 'bundle parameter: %s\n' % param)
474 outdebug(self.ui, 'bundle parameter: %s' % param)
475 yield _pack(_fstreamparamsize, len(param))
475 yield _pack(_fstreamparamsize, len(param))
476 if param:
476 if param:
477 yield param
477 yield param
478
478
479 outdebug(self.ui, 'start of parts\n')
479 outdebug(self.ui, 'start of parts')
480 for part in self._parts:
480 for part in self._parts:
481 outdebug(self.ui, 'bundle part: "%s"\n' % part.type)
481 outdebug(self.ui, 'bundle part: "%s"' % part.type)
482 for chunk in part.getchunks():
482 for chunk in part.getchunks():
483 yield chunk
483 yield chunk
484 outdebug(self.ui, 'end of bundle\n')
484 outdebug(self.ui, 'end of bundle')
485 yield _pack(_fpartheadersize, 0)
485 yield _pack(_fpartheadersize, 0)
486
486
487 def _paramchunk(self):
487 def _paramchunk(self):
General Comments 0
You need to be logged in to leave comments. Login now