/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Andrew Bennetts
  • Date: 2009-03-04 07:10:07 UTC
  • mto: (4086.1.2 hpss-integration)
  • mto: This revision was merged to the branch mainline in revision 4087.
  • Revision ID: andrew.bennetts@canonical.com-20090304071007-8iqoi1m44ypmzg2a
Rough prototype of allowing a SearchResult to be passed to fetch, and using that to improve network conversations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1160
1160
        elif response.body_stream is not None:
1161
1161
            for exc_info, chunk in _iter_with_errors(response.body_stream):
1162
1162
                if exc_info is not None:
 
1163
                    #import traceback; traceback.print_tb(exc_info[2])
1163
1164
                    self._write_error_status()
 
1165
                    #import pdb; pdb.set_trace()
1164
1166
                    error_struct = request._translate_error(exc_info[1])
1165
1167
                    self._write_structure(error_struct)
1166
1168
                    break
1167
1169
                else:
 
1170
                    if isinstance(chunk, request.FailedSmartServerResponse):
 
1171
                        self._write_error_status()
 
1172
                        self._write_structure(chunk.args)
 
1173
                        break
1168
1174
                    self._write_prefixed_body(chunk)
1169
1175
                    self.flush()
1170
1176
        self._write_end()