~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-11 11:01:02 UTC
  • mfrom: (4098.3.2 tildes-are-love)
  • Revision ID: pqm@pqm.ubuntu.com-20090311110102-y233cktxicmatxjc
(Jonathan Lange) Don't escape tildes in URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        relpath = relpath.encode('utf-8')
69
69
    # After quoting and encoding, the path should be perfectly
70
70
    # safe as a plain ASCII string, str() just enforces this
71
 
    return str(urllib.quote(relpath))
 
71
    return str(urllib.quote(relpath, safe='/~'))
72
72
 
73
73
 
74
74
def file_relpath(base, path):