mercurial/commands.py
changeset 1413 1c64c628d15f
parent 1405 6fd6527f95eb
child 1415 c6e6ca96a033
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -32,7 +32,7 @@ def relpath(repo, args):
     return args
 
 def matchpats(repo, cwd, pats=[], opts={}, head=''):
-    return util.matcher(repo.root, cwd, pats or ['.'], opts.get('include'),
+    return util.cmdmatcher(repo.root, cwd, pats or ['.'], opts.get('include'),
                         opts.get('exclude'), head)
 
 def makewalk(repo, pats, opts, head=''):