Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 4307:702f48570eb3
change relglob: patterns to be consistent with glob: patterns
With this change, you have to use "hg locate 'hgweb/**'" to locate
all the files in directories named hgweb. OTOH, "hg locate '*l'"
will locate only files that end with "l" - e.g. a file called "hg.py"
will not be matched just because it's in a directory whose name ends
with "l" (e.g. "mercurial").
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 04 Apr 2007 04:22:06 -0300 |
parents | 6cecaec07cc9 |
children | d4f0405fadac |
line wrap: on
line diff
--- a/mercurial/util.py Wed Apr 04 04:22:05 2007 -0300 +++ b/mercurial/util.py Wed Apr 04 04:22:06 2007 -0300 @@ -436,7 +436,7 @@ elif kind == 'path': return '^' + re.escape(name) + '(?:/|$)' elif kind == 'relglob': - return globre(name, '(?:|.*/)', '(?:/|$)') + return globre(name, '(?:|.*/)', tail) elif kind == 'relpath': return re.escape(name) + '(?:/|$)' elif kind == 'relre':