~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Alexander Belchenko
  • Date: 2006-06-24 06:30:17 UTC
  • mto: (1711.4.23 win32)
  • mto: This revision was merged to the branch mainline in revision 1822.
  • Revision ID: bialix@ukr.net-20060624063017-a1bff7e3e9641cf5
win32: convert drive letter to uppercase, not lowercase

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    # Preferentially using .lower() because os.getcwd() returns
185
185
    # paths with lowercase drive letters, and that helps
186
186
    # bzrlib.osutils.relpath() work correctly
187
 
    return win32_url[0].lower() + u':' + unescape(win32_url[2:])
 
187
    return win32_url[0].upper() + u':' + unescape(win32_url[2:])
188
188
 
189
189
 
190
190
def _win32_local_path_to_url(path):
200
200
    #       semantics, since 'nt' is not an available module.
201
201
    win32_path = bzrlib.osutils._nt_normpath(
202
202
        bzrlib.osutils._win32_abspath(path)).replace('\\', '/')
203
 
    return 'file:///' + win32_path[0].lower() + ':' + escape(win32_path[2:])
 
203
    return 'file:///' + win32_path[0].upper() + ':' + escape(win32_path[2:])
204
204
 
205
205
 
206
206
local_path_to_url = _posix_local_path_to_url