small globprefix fix
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 23:00:42 -0300
changeset 4178 6f9474044736
parent 4176 fc12ac3755d5
child 4179 da0588996ecc
small globprefix fix
mercurial/util.py
--- 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)