mercurial/util.py
changeset 4178 6f9474044736
parent 4129 e817c68edfed
child 4180 51ee2868a571
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -462,7 +462,7 @@ def _matcher(canonroot, cwd, names, inc,
     def globprefix(pat):
         '''return the non-glob prefix of a path, e.g. foo/* -> foo'''
         root = []
-        for p in pat.split(os.sep):
+        for p in pat.split('/'):
             if contains_glob(p): break
             root.append(p)
         return '/'.join(root)