~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-24 05:03:23 UTC
  • mfrom: (3192.2.2 smart-path-encoding)
  • Revision ID: pqm@pqm.ubuntu.com-20080124050323-gsgsp2em7v1ugtnz
(andrew) Don't URL-escape relpaths transmitted by the smart protocol
        client, fixing an interoperability issue with bzr 1.1 and earlier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import urllib
17
18
from urlparse import urlparse
18
19
 
19
20
from bzrlib.smart import protocol
91
92
        else:
92
93
            medium_base = urlutils.join(self._shared_connection.base, '/')
93
94
            
94
 
        return urlutils.relative_url(medium_base, transport.base).encode('utf8')
 
95
        rel_url = urlutils.relative_url(medium_base, transport.base)
 
96
        return urllib.unquote(rel_url)