Mercurial > hg
comparison hgext/remotefilelog/__init__.py @ 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 | 312afd164009 |
children | e9b9ee9af4a9 |
comparison
equal
deleted
inserted
replaced
41633:7b1b0415f8e5 | 41634:62bf34f70fe8 |
---|---|
900 opts[r'removed'] = True | 900 opts[r'removed'] = True |
901 | 901 |
902 # If this is a non-follow log without any revs specified, recommend that | 902 # If this is a non-follow log without any revs specified, recommend that |
903 # the user add -f to speed it up. | 903 # the user add -f to speed it up. |
904 if not follow and not revs: | 904 if not follow and not revs: |
905 match, pats = scmutil.matchandpats(repo['.'], pats, | 905 match = scmutil.match(repo['.'], pats, pycompat.byteskwargs(opts)) |
906 pycompat.byteskwargs(opts)) | |
907 isfile = not match.anypats() | 906 isfile = not match.anypats() |
908 if isfile: | 907 if isfile: |
909 for file in match.files(): | 908 for file in match.files(): |
910 if not os.path.isfile(repo.wjoin(file)): | 909 if not os.path.isfile(repo.wjoin(file)): |
911 isfile = False | 910 isfile = False |