# HG changeset patch # User Yuya Nishihara # Date 1515044235 -32400 # Node ID 84d0e99c063a0f26be5de5c8e5394f347ad7e519 # Parent 67893a51627270c80a0b84f1239c9e4f061e42e7 log: replace "not pats" with matcher attribute for consistency We use match.always() in _makelogrevset(). match.always() is identical to "not pats" here since scmutil.matchandpats() empties pats in that case. diff -r 67893a516272 -r 84d0e99c063a mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Jan 03 15:58:59 2018 +0900 +++ b/mercurial/cmdutil.py Thu Jan 04 14:37:15 2018 +0900 @@ -2535,7 +2535,7 @@ return smartset.baseset(), None match, pats, slowpath = _makelogmatcher(repo, revs, pats, opts) if follow: - if slowpath or not pats: + if slowpath or match.always(): revs = dagop.revancestors(repo, revs, followfirst=followfirst) else: revs = _fileancestors(repo, revs, match, followfirst)