mercurial/commands.py
changeset 4055 e37786b29bed
parent 4053 994fec0ee900
child 4056 f1622b4f467d
--- a/mercurial/commands.py	Tue Jan 30 18:32:18 2007 -0200
+++ b/mercurial/commands.py	Tue Jan 30 18:32:20 2007 -0200
@@ -605,7 +605,7 @@
         return res
 
 
-    pats = list(pats)
+    pats = util.expand_glob(pats)
     if not pats:
         raise util.Abort(_('no source or destination specified'))
     if len(pats) == 1:
@@ -622,7 +622,8 @@
     copylist = []
     for pat in pats:
         srcs = []
-        for tag, abssrc, relsrc, exact in cmdutil.walk(repo, [pat], opts):
+        for tag, abssrc, relsrc, exact in cmdutil.walk(repo, [pat], opts,
+                                                       globbed=True):
             origsrc = okaytocopy(abssrc, relsrc, exact)
             if origsrc:
                 srcs.append((origsrc, abssrc, relsrc, exact))