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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-30 15:05:50 UTC
  • mfrom: (1711.4.38 win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20060630150550-7c698ee2cf8678d8
(jam) fix sftp tests for win32, fix drive letter inconsistency

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        or win32_url[2] != '/'):
182
182
        raise errors.InvalidURL(url, 'Win32 file urls start with'
183
183
                ' file:///x:/, where x is a valid drive letter')
184
 
    # Preferentially using .lower() because os.getcwd() returns
185
 
    # paths with lowercase drive letters, and that helps
186
 
    # bzrlib.osutils.relpath() work correctly
187
184
    return win32_url[0].upper() + u':' + unescape(win32_url[2:])
188
185
 
189
186