Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 4186:08d31e43592a
Leave normalization of patterns to util._matcher
Passing [] to util.cmdmatcher accidentally fixes walking of files
with "\n" in the name.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 23:00:46 -0300 |
parents | e37786b29bed |
children | e8ee8fdeddb1 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat Mar 10 23:00:45 2007 -0300 +++ b/mercurial/cmdutil.py Sat Mar 10 23:00:46 2007 -0300 @@ -129,13 +129,7 @@ def matchpats(repo, pats=[], opts={}, head='', globbed=False): cwd = repo.getcwd() - if not pats and cwd: - opts['include'] = [os.path.join(cwd, i) - for i in opts.get('include', [])] - opts['exclude'] = [os.path.join(cwd, x) - for x in opts.get('exclude', [])] - cwd = '' - return util.cmdmatcher(repo.root, cwd, pats or ['.'], opts.get('include'), + return util.cmdmatcher(repo.root, cwd, pats or [], opts.get('include'), opts.get('exclude'), head, globbed=globbed) def walk(repo, pats=[], opts={}, node=None, head='', badmatch=None,