changeset 4183:6f9474044736

small globprefix fix
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 10 Mar 2007 23:00:42 -0300
parents fc12ac3755d5
children da0588996ecc
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)