mercurial/copies.py
changeset 36346 f62369667a7c
parent 36117 c02771617a70
child 37392 a4f02a17420d
--- a/mercurial/copies.py	Wed Feb 21 10:08:35 2018 -0500
+++ b/mercurial/copies.py	Wed Feb 21 10:10:02 2018 -0500
@@ -685,8 +685,8 @@
     # the base and present in the source.
     # Presence in the base is important to exclude added files, presence in the
     # source is important to exclude removed files.
-    missingfiles = filter(lambda f: f not in m1 and f in base and f in c2,
-                          changedfiles)
+    filt = lambda f: f not in m1 and f in base and f in c2
+    missingfiles = [f for f in changedfiles if filt(f)]
 
     if missingfiles:
         basenametofilename = collections.defaultdict(list)