/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/transport/smart/vfs.py

Paramaterise the commands handled by SmartServerRequestHandler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from bzrlib.transport.smart import request
25
25
 
26
26
 
27
 
vfs_commands = {}
 
27
# vfs_commands is the set of commands handlers for the version 1 protocol.
 
28
vfs_commands = request.version_one_commands.copy()
28
29
 
29
30
def register_command(command):
30
31
    vfs_commands[command.method] = command
218
219
            ('stat', str(stat.st_size), oct(stat.st_mode)))
219
220
register_command(StatCommand)
220
221
 
221
 
request.version_one_commands.update(vfs_commands)