Mercurial > public > mercurial-scm > hg-stable
diff mercurial/archival.py @ 5842: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 | 667290b6c95e |
children | 20b05618b3e2 |
line wrap: on
line diff
--- a/mercurial/archival.py Fri Jan 11 14:06:05 2008 -0600 +++ b/mercurial/archival.py Wed Jan 09 21:30:13 2008 +0900 @@ -15,7 +15,7 @@ safe for consumers.''' if prefix: - prefix = prefix.replace('\\', '/') + prefix = util.normpath(prefix) else: if not isinstance(dest, str): raise ValueError('dest must be string if no prefix')