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

Make sure all the request handlers in bzrlib/smart/vfs.py have consistent names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        return request.SmartServerResponse(('ok', ))
94
94
 
95
95
 
96
 
class IterFilesRecursive(VfsRequest):
 
96
class IterFilesRecursiveRequest(VfsRequest):
97
97
 
98
98
    def do(self, relpath):
99
99
        transport = self._backing_transport.clone(relpath)
108
108
        return request.SmartServerResponse(('names',) + tuple(filenames))
109
109
 
110
110
 
111
 
class MkdirCommand(VfsRequest):
 
111
class MkdirRequest(VfsRequest):
112
112
 
113
113
    def do(self, relpath, mode):
114
114
        self._backing_transport.mkdir(relpath,
116
116
        return request.SmartServerResponse(('ok',))
117
117
 
118
118
 
119
 
class MoveCommand(VfsRequest):
 
119
class MoveRequest(VfsRequest):
120
120
 
121
121
    def do(self, rel_from, rel_to):
122
122
        self._backing_transport.move(rel_from, rel_to)
123
123
        return request.SmartServerResponse(('ok',))
124
124
 
125
125
 
126
 
class PutCommand(VfsRequest):
 
126
class PutRequest(VfsRequest):
127
127
 
128
128
    def do(self, relpath, mode):
129
129
        self._relpath = relpath
134
134
        return request.SmartServerResponse(('ok',))
135
135
 
136
136
 
137
 
class PutNonAtomicCommand(VfsRequest):
 
137
class PutNonAtomicRequest(VfsRequest):
138
138
 
139
139
    def do(self, relpath, mode, create_parent, dir_mode):
140
140
        self._relpath = relpath
152
152
        return request.SmartServerResponse(('ok',))
153
153
 
154
154
 
155
 
class ReadvCommand(VfsRequest):
 
155
class ReadvRequest(VfsRequest):
156
156
 
157
157
    def do(self, relpath):
158
158
        self._relpath = relpath
175
175
        return offsets
176
176
 
177
177
 
178
 
class RenameCommand(VfsRequest):
 
178
class RenameRequest(VfsRequest):
179
179
 
180
180
    def do(self, rel_from, rel_to):
181
181
        self._backing_transport.rename(rel_from, rel_to)
182
182
        return request.SmartServerResponse(('ok', ))
183
183
 
184
184
 
185
 
class RmdirCommand(VfsRequest):
 
185
class RmdirRequest(VfsRequest):
186
186
 
187
187
    def do(self, relpath):
188
188
        self._backing_transport.rmdir(relpath)
189
189
        return request.SmartServerResponse(('ok', ))
190
190
 
191
191
 
192
 
class StatCommand(VfsRequest):
 
192
class StatRequest(VfsRequest):
193
193
 
194
194
    def do(self, relpath):
195
195
        stat = self._backing_transport.stat(relpath)