mercurial/bundle2.py
changeset 26144 4bc3707f3e67
parent 25919 8221fefaea08
child 26269 521b4d061d4a
equal deleted inserted replaced
26143:42bb1812686f 26144:4bc3707f3e67
   845         try:
   845         try:
   846             for chunk in self._payloadchunks():
   846             for chunk in self._payloadchunks():
   847                 outdebug(ui, 'payload chunk size: %i' % len(chunk))
   847                 outdebug(ui, 'payload chunk size: %i' % len(chunk))
   848                 yield _pack(_fpayloadsize, len(chunk))
   848                 yield _pack(_fpayloadsize, len(chunk))
   849                 yield chunk
   849                 yield chunk
       
   850         except GeneratorExit:
       
   851             # GeneratorExit means that nobody is listening for our
       
   852             # results anyway, so just bail quickly rather than trying
       
   853             # to produce an error part.
       
   854             ui.debug('bundle2-generatorexit\n')
       
   855             raise
   850         except BaseException as exc:
   856         except BaseException as exc:
   851             # backup exception data for later
   857             # backup exception data for later
   852             ui.debug('bundle2-input-stream-interrupt: encoding exception %s'
   858             ui.debug('bundle2-input-stream-interrupt: encoding exception %s'
   853                      % exc)
   859                      % exc)
   854             exc_info = sys.exc_info()
   860             exc_info = sys.exc_info()