/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

merge bzr.dev r4029

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        
105
105
        Must return a SmartServerResponse.
106
106
        """
107
 
        raise NotImplementedError(self.do_body)
 
107
        if body_bytes != '':
 
108
            raise errors.SmartProtocolError('Request does not expect a body')
108
109
 
109
110
    def do_chunk(self, chunk_bytes):
110
111
        """Called with each body chunk if the request has a streamed body.
400
401
request_handlers.register_lazy(
401
402
    'Branch.unlock', 'bzrlib.smart.branch', 'SmartServerBranchRequestUnlock')
402
403
request_handlers.register_lazy(
 
404
    'BzrDir.create_repository', 'bzrlib.smart.bzrdir', 'SmartServerRequestCreateRepository')
 
405
request_handlers.register_lazy(
403
406
    'BzrDir.find_repository', 'bzrlib.smart.bzrdir', 'SmartServerRequestFindRepositoryV1')
404
407
request_handlers.register_lazy(
405
408
    'BzrDir.find_repositoryV2', 'bzrlib.smart.bzrdir', 'SmartServerRequestFindRepositoryV2')
447
450
request_handlers.register_lazy(
448
451
    'Repository.has_revision', 'bzrlib.smart.repository', 'SmartServerRequestHasRevision')
449
452
request_handlers.register_lazy(
 
453
    'Repository.insert_stream', 'bzrlib.smart.repository', 'SmartServerRepositoryInsertStream')
 
454
request_handlers.register_lazy(
450
455
    'Repository.is_shared', 'bzrlib.smart.repository', 'SmartServerRepositoryIsShared')
451
456
request_handlers.register_lazy(
452
457
    'Repository.lock_write', 'bzrlib.smart.repository', 'SmartServerRepositoryLockWrite')
453
458
request_handlers.register_lazy(
 
459
    'Repository.set_make_working_trees', 'bzrlib.smart.repository',
 
460
    'SmartServerRepositorySetMakeWorkingTrees')
 
461
request_handlers.register_lazy(
454
462
    'Repository.unlock', 'bzrlib.smart.repository', 'SmartServerRepositoryUnlock')
455
463
request_handlers.register_lazy(
456
464
    'Repository.tarball', 'bzrlib.smart.repository',