~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-18 01:16:25 UTC
  • mfrom: (3184.1.13 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080118011625-465mgy0mhdz1jiky
(robertc) Reduce traffic when requesting revision streams from a
        smart server (3 MB to 172 bytes for a full bzr.dev pull)
        (Robert Collins)

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
        """
330
332
    'bzrlib.smart.repository',
331
333
    'SmartServerRepositoryStreamRevisionsChunked')
332
334
request_handlers.register_lazy(
333
 
    'Repository.chunked_stream_knit_data_for_revisions',
334
 
    'bzrlib.smart.repository',
335
 
    'SmartServerRepositoryStreamKnitDataForRevisions')
336
 
request_handlers.register_lazy(
337
335
    'Repository.get_revision_graph', 'bzrlib.smart.repository', 'SmartServerRepositoryGetRevisionGraph')
338
336
request_handlers.register_lazy(
339
337
    'Repository.has_revision', 'bzrlib.smart.repository', 'SmartServerRequestHasRevision')