~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

Implement RemoteRepository.lock_write/unlock to expect and send tokens over the
smart protocol as appropriate, so that locking operations on RemoteRepositories
work correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
request_handlers.register_lazy(
284
284
    'Repository.is_shared', 'bzrlib.smart.repository', 'SmartServerRepositoryIsShared')
285
285
request_handlers.register_lazy(
 
286
    'Repository.lock_write', 'bzrlib.smart.repository', 'SmartServerRepositoryLockWrite')
 
287
request_handlers.register_lazy(
 
288
    'Repository.unlock', 'bzrlib.smart.repository', 'SmartServerRepositoryUnlock')
 
289
request_handlers.register_lazy(
286
290
    'rmdir', 'bzrlib.smart.vfs', 'RmdirRequest')
287
291
request_handlers.register_lazy(
288
292
    'stat', 'bzrlib.smart.vfs', 'StatRequest')