# HG changeset patch # User Martin von Zweigbergk # Date 2019-02-09 07:29:07 # Node ID 62bf34f70fe885ee3802f6391b30ed325ed2d95d # Parent 7b1b0415f8e50d35687fb78dc818239cc3b0454a 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 diff --git a/hgext/remotefilelog/__init__.py b/hgext/remotefilelog/__init__.py --- a/hgext/remotefilelog/__init__.py +++ b/hgext/remotefilelog/__init__.py @@ -902,8 +902,7 @@ def log(orig, ui, repo, *pats, **opts): # 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():