comparison mercurial/wireprotov2server.py @ 40692:f83cea7f54d7

wireprotov2server: let repo.narrowmatch(match) do matcher intersection This is supported since 4fd0fac48922 (localrepo: allow narrowmatch() to accept matcher to intersect with, 2018-09-28). Differential Revision: https://phab.mercurial-scm.org/D5281
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 15 Nov 2018 11:22:32 -0800
parents abbd077965c0
children 3ed77780f4a6
comparison
equal deleted inserted replaced
40691:85372dc0cca3 40692:f83cea7f54d7
1043 else: 1043 else:
1044 matcher = matchmod.match(repo.root, b'') 1044 matcher = matchmod.match(repo.root, b'')
1045 1045
1046 # Requested patterns could include files not in the local store. So 1046 # Requested patterns could include files not in the local store. So
1047 # filter those out. 1047 # filter those out.
1048 return matchmod.intersectmatchers(repo.narrowmatch(), matcher) 1048 return repo.narrowmatch(matcher)
1049 1049
1050 @wireprotocommand( 1050 @wireprotocommand(
1051 'filedata', 1051 'filedata',
1052 args={ 1052 args={
1053 'haveparents': { 1053 'haveparents': {