Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 13534:4ec34de8bbb1 stable
match: ignore "" patterns
The following command would visit every changeset in repo/ rather than
the last 10:
hg log -l 10 repo/
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 04 Mar 2011 19:21:12 -0600 |
parents | 31aa2e5b0750 |
children | 8796fb6af67e |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Mar 04 14:00:49 2011 +0100 +++ b/mercurial/cmdutil.py Fri Mar 04 19:21:12 2011 -0600 @@ -261,6 +261,8 @@ return ret def match(repo, pats=[], opts={}, globbed=False, default='relpath'): + if pats == ("",): + pats = [] if not globbed and default == 'relpath': pats = expandpats(pats or []) m = matchmod.match(repo.root, repo.getcwd(), pats,