~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-16 21:36:37 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060116213637-2f4cc1c55769f464
Adding an InvalidURL so transports can report they expect utf-8 quoted paths. Updated tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                           )
39
39
from bzrlib.osutils import pathjoin, fancy_rename
40
40
from bzrlib.trace import mutter, warning, error
41
 
from bzrlib.transport import Transport, Server, urlescape
 
41
from bzrlib.transport import Transport, Server, urlescape, urlunescape
42
42
import bzrlib.ui
43
43
 
44
44
try:
278
278
        """
279
279
        # FIXME: share the common code across transports
280
280
        assert isinstance(relpath, basestring)
281
 
        relpath = urllib.unquote(relpath).split('/')
 
281
        relpath = urlunescape(relpath).split('/')
282
282
        basepath = self._path.split('/')
283
283
        if len(basepath) > 0 and basepath[-1] == '':
284
284
            basepath = basepath[:-1]