Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 6575:e08e0367ba15
walk: kill util.cmdmatcher and _matcher
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 962eb403165b |
children | 99a92acafdb9 |
line wrap: on
line diff
--- a/mercurial/util.py Mon May 12 11:37:07 2008 -0500 +++ b/mercurial/util.py Mon May 12 11:37:07 2008 -0500 @@ -412,17 +412,7 @@ raise Abort('%s not under root' % myname) -def matcher(canonroot, cwd='', names=[], inc=[], exc=[], src=None): - return _matcher(canonroot, cwd, names, inc, exc, 'glob', src) - -def cmdmatcher(canonroot, cwd='', names=[], inc=[], exc=[], src=None, - globbed=False, default=None): - default = default or 'relpath' - if default == 'relpath' and not globbed: - names = expand_glob(names) - return _matcher(canonroot, cwd, names, inc, exc, default, src) - -def _matcher(canonroot, cwd, names, inc, exc, dflt_pat, src): +def matcher(canonroot, cwd='', names=[], inc=[], exc=[], src=None, dflt_pat='glob'): """build a function to match a set of file patterns arguments: