# HG changeset patch # User Matt Mackall # Date 1299288072 21600 # Node ID 4ec34de8bbb1e58eca9c52e141c212d58bad9ace # Parent 67fbe566eff1c991921d66f836b73bd0549620a3 match: ignore "" patterns The following command would visit every changeset in repo/ rather than the last 10: hg log -l 10 repo/ diff -r 67fbe566eff1 -r 4ec34de8bbb1 mercurial/cmdutil.py --- 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,