~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-12 18:48:36 UTC
  • mfrom: (6055.2.19 unparsedurl-b)
  • Revision ID: pqm@pqm.ubuntu.com-20110812184836-5jv1u3ns0s74zsg0
(jelmer) Add URL.clone,
 URL.__str__ and use them in various places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
 
336
336
        :param relpath: is a urlencoded string.
337
337
        """
338
 
        relative = urlutils.unescape(relpath).encode('utf-8')
339
 
        remote_path = self._combine_paths(self._parsed_url.path, relative)
 
338
        remote_path = self._parsed_url.clone(relpath).path
340
339
        # the initial slash should be removed from the path, and treated as a
341
340
        # homedir relative path (the path begins with a double slash if it is
342
341
        # absolute).  see draft-ietf-secsh-scp-sftp-ssh-uri-03.txt