Patchwork D2234: narrow: restrict manifest iteration by using manifest.walk(matcher)

login
register
mail settings
Submitter phabricator
Date Feb. 15, 2018, 2:04 a.m.
Message ID <e4fa8f266a7c709312ef6e09007aa5a6@localhost.localdomain>
Download mbox | patch
Permalink /patch/27939/
State Not Applicable
Headers show

Comments

phabricator - Feb. 15, 2018, 2:04 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2ad527f7d27a: narrow: restrict manifest iteration by using manifest.walk(matcher) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2234?vs=5656&id=5732

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

AFFECTED FILES
  hgext/narrow/narrowbundle2.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -152,7 +152,7 @@ 
             else:
                 # For a root node, we need to include the node if any
                 # files in the node match the narrowspec.
-                needed = any(match(f) for f in curmf)
+                needed = any(curmf.walk(match))
 
         if needed:
             for head in ellipsisheads[rev]: