/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/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-11 14:46:42 UTC
  • mto: (5268.7.8 transport-segments)
  • mto: This revision was merged to the branch mainline in revision 6067.
  • Revision ID: jelmer@samba.org-20110811144642-la3924phc64d540x
Add URL.clone().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1434
1434
 
1435
1435
        :returns: the Unicode version of the absolute path for relpath.
1436
1436
        """
1437
 
        relative = urlutils.unescape(relpath).encode('utf-8')
1438
 
        path = urlutils.URL._combine_paths(self._parsed_url.path, relative)
1439
 
        return self._unsplit_url(self._parsed_url.scheme,
1440
 
            self._parsed_url.user, self._parsed_url.password,
1441
 
            self._parsed_url.host, self._parsed_url.port, path)
 
1437
        other = self._parsed_url.clone(relpath)
 
1438
        return self._unsplit_url(other.scheme, other.user, other.password,
 
1439
            other.host, other.port, other.path)
1442
1440
 
1443
1441
    def _remote_path(self, relpath):
1444
1442
        """Return the absolute path part of the url to the given relative path.