mercurial/dirstate.py
changeset 4075 31a679ae7eef
parent 3842 47c634bf1e92
child 4081 e6d26e71f049
child 4173 b36bd7534c08
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -391,7 +391,7 @@ class dirstate(object):
 
         # self.root may end with a path separator when self.root == '/'
         common_prefix_len = len(self.root)
-        if not self.root.endswith('/'):
+        if not self.root.endswith(os.sep):
             common_prefix_len += 1
         # recursion free walker, faster than os.walk.
         def findfiles(s):