~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-26 05:42:38 UTC
  • mfrom: (2432.2.9 hpss-protocol2)
  • Revision ID: pqm@pqm.ubuntu.com-20070426054238-v6k5ge3z766vaafk
(Andrew Bennetts, Robert Collins) Smart server protocol versioning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
 
201
201
 
202
202
class HelloRequest(SmartServerRequest):
203
 
    """Answer a version request with my version."""
 
203
    """Answer a version request with the highest protocol version this server
 
204
    supports.
 
205
    """
204
206
 
205
207
    def do(self):
206
 
        return SmartServerResponse(('ok', '1'))
 
208
        return SmartServerResponse(('ok', '2'))
207
209
 
208
210
 
209
211
class GetBundleRequest(SmartServerRequest):