changeset 24633:2f8f7cc6a53b

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 06 Apr 2015 17:03:35 -0700
parents b2fb1403994e
children 4ece2847cf4c
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: