~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Robert Collins
  • Date: 2009-02-20 08:26:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4028.
  • Revision ID: robertc@robertcollins.net-20090220082650-wmzch4en338bymkm
Cherrypick and polish the RemoteSink for streaming push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1247
1247
                self._write_prefixed_body(part)
1248
1248
                self.flush()
1249
1249
        except Exception:
 
1250
            exc_info = sys.exc_info()
1250
1251
            # Iterating the stream failed.  Cleanly abort the request.
1251
1252
            self._write_error_status()
1252
1253
            # Currently the client unconditionally sends ('error',) as the
1253
1254
            # error args.
1254
1255
            self._write_structure(('error',))
 
1256
            raise exc_info[0], exc_info[1], exc_info[2]
1255
1257
        self._write_end()
1256
1258
        self._medium_request.finished_writing()
1257
1259