Mercurial > hg
changeset 41634:62bf34f70fe8
remotefilelog: replace matchandpats() by match()
It doesn't seem like replacing "pats" was useful here. Replacing ("",)
by [] doesn't seem like it would make a difference and glob-expansion
only happens on Windows. It seem like we should just pass the patterns
on to orig() unmodified.
Differential Revision: https://phab.mercurial-scm.org/D5920
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Feb 2019 23:29:07 -0800 |
parents | 7b1b0415f8e5 |
children | 446e1dcc3b5c |
files | hgext/remotefilelog/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotefilelog/__init__.py Thu Jan 31 12:49:22 2019 -0800 +++ b/hgext/remotefilelog/__init__.py Fri Feb 08 23:29:07 2019 -0800 @@ -902,8 +902,7 @@ # If this is a non-follow log without any revs specified, recommend that # the user add -f to speed it up. if not follow and not revs: - match, pats = scmutil.matchandpats(repo['.'], pats, - pycompat.byteskwargs(opts)) + match = scmutil.match(repo['.'], pats, pycompat.byteskwargs(opts)) isfile = not match.anypats() if isfile: for file in match.files():