mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
_makelogrevset: avoid match.files() in conditions
See 559ee9ecae07 (match: introduce boolean prefix() method, 2014-10-28) for reasons to avoid match.files() in conditions.
This commit is contained in:
parent
bb8cf7edcc
commit
bc6ed66a89
@ -1951,7 +1951,8 @@ def _makelogrevset(repo, pats, opts, revs):
|
||||
# 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:
|
||||
|
Loading…
Reference in New Issue
Block a user