Mercurial > hg-stable
changeset 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 | 67fbe566eff1 |
children | 0d3cce1de233 919174c0aaff |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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,