# HG changeset patch # User Alexis S. L. Carvalho # Date 1173578442 10800 # Node ID 6f94740447362e7ff376f7e6145eb59d93859d2f # Parent fc12ac3755d5f072f51de03ad58edb3cc9fde505 small globprefix fix diff --git a/mercurial/util.py b/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)