# HG changeset patch # User Martin von Zweigbergk # Date 2015-05-19 18:35:43 # Node ID 8e0e334bad42066efb76b21b62d48a8f15bad8f4 # Parent 6c76c42a5893a9878d49e80807b36e51b4021887 _makelogrevset: avoid match.files() in conditions See 9789b4a7c595 (match: introduce boolean prefix() method, 2014-10-28) for reasons to avoid match.files() in conditions. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1951,7 +1951,8 @@ def _makelogrevset(repo, pats, opts, rev # platforms without shell expansion (windows). wctx = repo[None] match, pats = scmutil.matchandpats(wctx, pats, opts) - slowpath = match.anypats() or (match.files() and opts.get('removed')) + slowpath = match.anypats() or ((match.isexact() or match.prefix()) and + opts.get('removed')) if not slowpath: for f in match.files(): if follow and f not in wctx: