comparison mercurial/cmdutil.py @ 35688:84d0e99c063a

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.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 04 Jan 2018 14:37:15 +0900
parents 67893a516272
children 5fe6f946f111
comparison
equal deleted inserted replaced
35687:67893a516272 35688:84d0e99c063a
2533 revs = _logrevs(repo, opts) 2533 revs = _logrevs(repo, opts)
2534 if not revs: 2534 if not revs:
2535 return smartset.baseset(), None 2535 return smartset.baseset(), None
2536 match, pats, slowpath = _makelogmatcher(repo, revs, pats, opts) 2536 match, pats, slowpath = _makelogmatcher(repo, revs, pats, opts)
2537 if follow: 2537 if follow:
2538 if slowpath or not pats: 2538 if slowpath or match.always():
2539 revs = dagop.revancestors(repo, revs, followfirst=followfirst) 2539 revs = dagop.revancestors(repo, revs, followfirst=followfirst)
2540 else: 2540 else:
2541 revs = _fileancestors(repo, revs, match, followfirst) 2541 revs = _fileancestors(repo, revs, match, followfirst)
2542 revs.reverse() 2542 revs.reverse()
2543 expr, filematcher = _makelogrevset(repo, match, pats, slowpath, opts) 2543 expr, filematcher = _makelogrevset(repo, match, pats, slowpath, opts)