Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 4055:e37786b29bed
docopy: deal with globs on windows in a better way
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 30 Jan 2007 18:32:20 -0200 |
parents | 994fec0ee900 |
children | f1622b4f467d |
line wrap: on
line diff
--- 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))