hgext/narrow/narrowcopies.py
changeset 36345 f85e32a5e5c8
parent 36079 a2a6e724d61a
child 36472 d0d5eef57fb0
--- a/hgext/narrow/narrowcopies.py	Wed Feb 21 09:43:35 2018 -0500
+++ b/hgext/narrow/narrowcopies.py	Wed Feb 21 10:08:35 2018 -0500
@@ -19,7 +19,7 @@
         missing = orig(a, b, match)
         if util.safehasattr(repo, 'narrowmatch'):
             narrowmatch = repo.narrowmatch()
-            missing = filter(narrowmatch, missing)
+            missing = [f for f in missing if narrowmatch(f)]
         return missing
 
     def _checkcopies(orig, srcctx, dstctx, f, base, tca, remotebase, limit,