~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

MergeĀ fromĀ smart-push-gpm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        return client_medium, None
476
476
 
477
477
 
 
478
class RemoteTCPTransportV2Only(RemoteTransport):
 
479
    """Connection to smart server over plain tcp with the client hard-coded to
 
480
    assume protocol v2 and remote server version <= 1.6.
 
481
 
 
482
    This should only be used for testing.
 
483
    """
 
484
 
 
485
    def _build_medium(self):
 
486
        client_medium = medium.SmartTCPClientMedium(
 
487
            self._host, self._port, self.base)
 
488
        client_medium._protocol_version = 2
 
489
        client_medium._remember_remote_is_before((1, 6))
 
490
        return client_medium, None
 
491
 
 
492
 
478
493
class RemoteSSHTransport(RemoteTransport):
479
494
    """Connection to smart server over SSH.
480
495