# HG changeset patch # User Martin von Zweigbergk # Date 1426695986 25200 # Node ID dd3bccb4b820a1df5161ba54bdaf64cf9f2f62a3 # Parent 8c445d8a915be919a03e69cc7211da5f78d16859 context.walk: call with util.all() a generator, not a list The file set can be large, so avoid going through the entire file set when a file happens not to be in the context. diff -r 8c445d8a915b -r dd3bccb4b820 mercurial/context.py --- a/mercurial/context.py Tue Mar 17 14:52:58 2015 -0700 +++ b/mercurial/context.py Wed Mar 18 09:26:26 2015 -0700 @@ -594,7 +594,7 @@ # avoid the entire walk if we're only looking for specific files if fset and not match.anypats(): - if util.all([fn in self for fn in fset]): + if util.all(fn in self for fn in fset): for fn in sorted(fset): if match(fn): yield fn