Mercurial > hg > mercurial-crew-with-dirclash
changeset 4178: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 +++ 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)