mercurial/cmdutil.py
changeset 36346 f62369667a7c
parent 36239 428de1a59f2d
child 36402 ef6ae3f64c23
--- a/mercurial/cmdutil.py	Wed Feb 21 10:08:35 2018 -0500
+++ b/mercurial/cmdutil.py	Wed Feb 21 10:10:02 2018 -0500
@@ -1831,7 +1831,7 @@
                 else:
                     self.revs.discard(value)
                     ctx = change(value)
-                    matches = filter(match, ctx.files())
+                    matches = [f for f in ctx.files() if match(f)]
                     if matches:
                         fncache[value] = matches
                         self.set.add(value)