mercurial/revset.py
branchstable
changeset 19706 26ddce1a2a55
parent 18991 c1af1fb314bc
child 19719 2f9d5c5256ea
--- a/mercurial/revset.py	Tue Sep 03 18:05:11 2013 -0500
+++ b/mercurial/revset.py	Tue Aug 06 00:52:06 2013 +0400
@@ -910,8 +910,8 @@
     l = []
     for r in subset:
         c = repo[r]
-        t = " ".join(c.files() + [c.user(), c.description()])
-        if kw in encoding.lower(t):
+        if util.any(kw in encoding.lower(t)
+                    for t in c.files() + [c.user(), c.description()]):
             l.append(r)
     return l