~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-18 03:28:27 UTC
  • mfrom: (3453.4.10 remote-is-at-least)
  • Revision ID: pqm@pqm.ubuntu.com-20080618032827-fq9wj33m0wfpurzv
Better infrastructure for tracking remote server version in
        SmartClientMedium. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                    response_handler)
62
62
        else:
63
63
            for protocol_version in [3, 2]:
 
64
                if protocol_version == 2:
 
65
                    # If v3 doesn't work, the remote side is older than 1.6.
 
66
                    self._medium._remember_remote_is_before((1, 6))
64
67
                response_handler = self._send_request(
65
68
                    protocol_version, method, args, body=body,
66
69
                    readv_body=readv_body)