--- a/mercurial/scmutil.py Fri Sep 14 12:08:17 2012 -0700
+++ b/mercurial/scmutil.py Fri Sep 14 12:08:55 2012 -0700
@@ -267,7 +267,7 @@
mode += "b" # for that other OS
nlink = -1
- dirname, basename = os.path.split(f)
+ dirname, basename = util.split(f)
# If basename is empty, then the path is malformed because it points
# to a directory. Let the posixfile() call below raise IOError.
if basename and mode not in ('r', 'rb'):
@@ -383,7 +383,7 @@
name = os.path.join(*rel)
auditor(name)
return util.pconvert(name)
- dirname, basename = os.path.split(name)
+ dirname, basename = util.split(name)
rel.append(basename)
if dirname == name:
break