# HG changeset patch # User Matt Mackall # Date 2011-03-05 01:21:12 # 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 --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -261,6 +261,8 @@ def expandpats(pats): 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,