D5281: wireprotov2server: let repo.narrowmatch(match) do matcher intersection

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Nov 15 23:33:20 UTC 2018


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is supported since https://phab.mercurial-scm.org/rHG4fd0fac4892213a5f3a6a460366e026a42e66cff (localrepo: allow narrowmatch()
  to accept matcher to intersect with, 2018-09-28).

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5281

AFFECTED FILES
  mercurial/wireprotov2server.py

CHANGE DETAILS

diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py
--- a/mercurial/wireprotov2server.py
+++ b/mercurial/wireprotov2server.py
@@ -1045,7 +1045,7 @@
 
     # Requested patterns could include files not in the local store. So
     # filter those out.
-    return matchmod.intersectmatchers(repo.narrowmatch(), matcher)
+    return repo.narrowmatch(matcher)
 
 @wireprotocommand(
     'filedata',



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list