Mercurial > hg > mercurial-crew
changeset 5843:111ed8c871bf
Use util.normpath() instead of direct path string operation.
This change is intended to allow hooking normpath() by win32mbcs
extension for MBCS support.
author | Shun-ichi GOTO <shunichi.goto@gmail.com> |
---|---|
date | Wed, 09 Jan 2008 21:30:13 +0900 |
parents | 07ca22a72dcc |
children | 83c354c4d529 |
files | hgext/convert/subversion.py mercurial/archival.py mercurial/dirstate.py |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -53,7 +53,7 @@ if os.path.isdir(path): path = os.path.normpath(os.path.abspath(path)) if os.name == 'nt': - path = '/' + path.replace('\\', '/') + path = '/' + util.normpath(path) return 'file://%s' % path return path @@ -751,7 +751,7 @@ os.path.basename(path)) commandline(ui, 'svnadmin').run0('create', path) created = path - path = path.replace('\\', '/') + path = util.normpath(path) if not path.startswith('/'): path = '/' + path path = 'file://' + path