/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/request.py

  • Committer: Robert Collins
  • Date: 2008-02-13 03:30:01 UTC
  • mfrom: (3221 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3224.
  • Revision ID: robertc@robertcollins.net-20080213033001-rw70ul0zb02ph856
Merge to fix conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
    def do_body(self, body_bytes):
68
68
        """Called if the client sends a body with the request.
 
69
 
 
70
        The do() method is still called, and must have returned None.
69
71
        
70
72
        Must return a SmartServerResponse.
71
73
        """
106
108
                other.body_stream is self.body_stream)
107
109
 
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))
111
113
 
112
114
 
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')