changectx.walk: drop unnecessary call to match function
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 06 Apr 2015 17:03:35 -0700
changeset 24633 2f8f7cc6a53b
parent 24632 b2fb1403994e
child 24634 4ece2847cf4c
changectx.walk: drop unnecessary call to match function If all the files in match.files() are in the context/manifest, we already know that the matcher will match each file.
mercurial/context.py
--- a/mercurial/context.py	Mon Apr 06 17:16:55 2015 -0500
+++ b/mercurial/context.py	Mon Apr 06 17:03:35 2015 -0700
@@ -592,8 +592,7 @@
         if fset and not match.anypats():
             if util.all(fn in self for fn in fset):
                 for fn in sorted(fset):
-                    if match(fn):
-                        yield fn
+                    yield fn
                 raise StopIteration
 
         for fn in self: