mercurial/util.py
changeset 4055 e37786b29bed
parent 4054 e6d54283c090
child 4057 3600b84656d3
--- a/mercurial/util.py	Tue Jan 30 18:32:18 2007 -0200
+++ b/mercurial/util.py	Tue Jan 30 18:32:20 2007 -0200
@@ -375,8 +375,10 @@
 def matcher(canonroot, cwd='', names=['.'], inc=[], exc=[], head='', src=None):
     return _matcher(canonroot, cwd, names, inc, exc, head, 'glob', src)
 
-def cmdmatcher(canonroot, cwd='', names=['.'], inc=[], exc=[], head='', src=None):
-    names = expand_glob(names)
+def cmdmatcher(canonroot, cwd='', names=['.'], inc=[], exc=[], head='',
+               src=None, globbed=False):
+    if not globbed:
+        names = expand_glob(names)
     return _matcher(canonroot, cwd, names, inc, exc, head, 'relpath', src)
 
 def _matcher(canonroot, cwd, names, inc, exc, head, dflt_pat, src):