--- a/mercurial/localrepo.py Sat Dec 24 19:01:07 2011 +0900
+++ b/mercurial/localrepo.py Sat Dec 24 19:05:25 2011 +0900
@@ -127,6 +127,7 @@
if not path.startswith(self.root):
return False
subpath = path[len(self.root) + 1:]
+ normsubpath = util.pconvert(subpath)
# XXX: Checking against the current working copy is wrong in
# the sense that it can reject things like
@@ -148,9 +149,9 @@
ctx = self[None]
parts = util.splitpath(subpath)
while parts:
- prefix = os.sep.join(parts)
+ prefix = '/'.join(parts)
if prefix in ctx.substate:
- if prefix == subpath:
+ if prefix == normsubpath:
return True
else:
sub = ctx.sub(prefix)