~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
 
171
171
    def _remote_path(self, relpath):
172
172
        """Returns the Unicode version of the absolute path for relpath."""
173
 
        return urlutils.URL._combine_paths(self._parsed_url.path, relpath)
 
173
        return self._combine_paths(self._path, relpath)
174
174
 
175
175
    def _call(self, method, *args):
176
176
        resp = self._call2(method, *args)
483
483
 
484
484
    def _build_medium(self):
485
485
        client_medium = medium.SmartTCPClientMedium(
486
 
            self._parsed_url.host, self._parsed_url.port, self.base)
 
486
            self._host, self._port, self.base)
487
487
        return client_medium, None
488
488
 
489
489
 
496
496
 
497
497
    def _build_medium(self):
498
498
        client_medium = medium.SmartTCPClientMedium(
499
 
            self._parsed_url.host, self._parsed_url.port, self.base)
 
499
            self._host, self._port, self.base)
500
500
        client_medium._protocol_version = 2
501
501
        client_medium._remember_remote_is_before((1, 6))
502
502
        return client_medium, None
512
512
    def _build_medium(self):
513
513
        location_config = config.LocationConfig(self.base)
514
514
        bzr_remote_path = location_config.get_bzr_remote_path()
515
 
        user = self._parsed_url.user
 
515
        user = self._user
516
516
        if user is None:
517
517
            auth = config.AuthenticationConfig()
518
 
            user = auth.get_user('ssh', self._parsed_url.host,
519
 
                self._parsed_url.port)
520
 
        ssh_params = medium.SSHParams(self._parsed_url.host,
521
 
                self._parsed_url.port, user, self._parsed_url.password,
522
 
                bzr_remote_path)
 
518
            user = auth.get_user('ssh', self._host, self._port)
 
519
        ssh_params = medium.SSHParams(self._host, self._port, user,
 
520
            self._password, bzr_remote_path)
523
521
        client_medium = medium.SmartSSHClientMedium(self.base, ssh_params)
524
 
        return client_medium, (user, self._parsed_url.password)
 
522
        return client_medium, (user, self._password)
525
523
 
526
524
 
527
525
class RemoteHTTPTransport(RemoteTransport):
541
539
            # url only for an intial construction (when the url came from the
542
540
            # command-line).
543
541
            http_url = base[len('bzr+'):]
544
 
            self._http_transport = transport.get_transport_from_url(http_url)
 
542
            self._http_transport = transport.get_transport(http_url)
545
543
        else:
546
544
            self._http_transport = http_transport
547
545
        super(RemoteHTTPTransport, self).__init__(