diff mercurial/dirstate.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 f252ba975925
children 83c354c4d529
line wrap: on
line diff
--- a/mercurial/dirstate.py	Fri Jan 11 14:06:05 2008 -0600
+++ b/mercurial/dirstate.py	Wed Jan 09 21:30:13 2008 +0900
@@ -87,7 +87,7 @@
             cwd = self.getcwd()
         path = util.pathto(self._root, cwd, f)
         if self._slash:
-            return path.replace(os.sep, '/')
+            return util.normpath(path)
         return path
 
     def __getitem__(self, key):