~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Robert Collins
  • Date: 2006-11-22 02:49:26 UTC
  • mto: (2018.5.34 hpss)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: robertc@robertcollins.net-20061122024926-41ba3a48a35200ee
Implement a BzrDir.open_branch smart server method for opening a branch without VFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        self.args = args
75
75
        self.body = body
76
76
 
 
77
    def __eq__(self, other):
 
78
        return other.args == self.args and other.body == self.body
 
79
 
 
80
    def __repr__(self):
 
81
        return "<SmartServerResponse args=%r body=%r>" % (self.args, self.body)
 
82
 
77
83
 
78
84
class SmartServerRequestHandler(object):
79
85
    """Protocol logic for smart server.
226
232
request_handlers.register_lazy(
227
233
    'append', 'bzrlib.smart.vfs', 'AppendRequest')
228
234
request_handlers.register_lazy(
 
235
    'BzrDir.open_branch', 'bzrlib.smart.bzrdir', 'SmartServerRequestOpenBranch')
 
236
request_handlers.register_lazy(
229
237
    'delete', 'bzrlib.smart.vfs', 'DeleteRequest')
230
238
request_handlers.register_lazy(
231
239
    'get', 'bzrlib.smart.vfs', 'GetRequest')