67
67
def do_body(self, body_bytes):
68
68
"""Called if the client sends a body with the request.
70
The do() method is still called, and must have returned None.
70
72
Must return a SmartServerResponse.
106
108
other.body_stream is self.body_stream)
108
110
def __repr__(self):
109
return "<SmartServerResponse %r args=%r body=%r>" % (
110
self.is_successful(), self.args, self.body)
111
return ("<SmartServerResponse successful=%s args=%r body=%r>"
112
% (self.is_successful(), self.args, self.body))
113
115
class FailedSmartServerResponse(SmartServerResponse):
318
320
request_handlers.register_lazy('Repository.gather_stats',
319
321
'bzrlib.smart.repository',
320
322
'SmartServerRepositoryGatherStats')
323
request_handlers.register_lazy('Repository.get_parent_map',
324
'bzrlib.smart.repository',
325
'SmartServerRepositoryGetParentMap')
321
326
request_handlers.register_lazy(
322
'Repository.stream_knit_data_for_revisions', 'bzrlib.smart.repository',
327
'Repository.stream_knit_data_for_revisions',
328
'bzrlib.smart.repository',
323
329
'SmartServerRepositoryStreamKnitDataForRevisions')
324
330
request_handlers.register_lazy(
331
'Repository.stream_revisions_chunked',
332
'bzrlib.smart.repository',
333
'SmartServerRepositoryStreamRevisionsChunked')
334
request_handlers.register_lazy(
325
335
'Repository.get_revision_graph', 'bzrlib.smart.repository', 'SmartServerRepositoryGetRevisionGraph')
326
336
request_handlers.register_lazy(
327
337
'Repository.has_revision', 'bzrlib.smart.repository', 'SmartServerRequestHasRevision')