예제 #1
0
 def _build_medium(self):
     client_medium = medium.SmartTCPClientMedium(self._parsed_url.host,
                                                 self._parsed_url.port,
                                                 self.base)
     client_medium._protocol_version = 2
     client_medium._remember_remote_is_before((1, 6))
     return client_medium, None
예제 #2
0
 def when_server_started(self):
     # Connect to the TCP server and issue some requests and see what comes
     # back.
     client_medium = medium.SmartTCPClientMedium(
         '127.0.0.1', self.tcp_server.port,
         'bzr://localhost:%d/' % (self.tcp_server.port, ))
     smart_client = client._SmartClient(client_medium)
     resp = smart_client.call('mkdir', 'foo', '')
     resp = smart_client.call('BzrDirFormat.initialize', 'foo/')
     try:
         resp = smart_client.call('BzrDir.find_repositoryV3', 'foo/')
     except errors.ErrorFromSmartServer, e:
         resp = e.error_tuple
예제 #3
0
 def _build_medium(self):
     client_medium = medium.SmartTCPClientMedium(self._parsed_url.host,
                                                 self._parsed_url.port,
                                                 self.base)
     return client_medium, None