/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/transport/remote.py

  • Committer: Andrew Bennetts
  • Date: 2008-06-05 22:56:42 UTC
  • mto: (3441.5.16 smart-push-gpm)
  • mto: This revision was merged to the branch mainline in revision 3509.
  • Revision ID: andrew.bennetts@canonical.com-20080605225642-0twch8sh5q6h0bw4
Add {bzrdir,repository,branch}_implementations tests for Remote objects using protocol v2 and pre-1.6 RPCs.

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._remote_is_not((1, 6))
 
490
        return client_medium, None
 
491
 
 
492
 
478
493
class RemoteSSHTransport(RemoteTransport):
479
494
    """Connection to smart server over SSH.
480
495