small globprefix fix
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 23:00:42 -0300
changeset 4183 6f9474044736
parent 4175 fc12ac3755d5
child 4184 da0588996ecc
small globprefix fix
mercurial/util.py
--- a/mercurial/util.py	Sat Mar 10 17:36:29 2007 -0800
+++ b/mercurial/util.py	Sat Mar 10 23:00:42 2007 -0300
@@ -462,7 +462,7 @@
     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)