merge with stable
authorKevin Bullock <kbullock@ringworld.org>
Sat, 07 Sep 2013 00:08:36 -0500
changeset 19707 591cbff13a7f
parent 19705 79792c8ea6da (current diff)
parent 19706 26ddce1a2a55 (diff)
child 19709 600ea1a6884c
merge with stable
--- a/mercurial/revset.py	Thu Aug 15 13:42:56 2013 -0500
+++ b/mercurial/revset.py	Sat Sep 07 00:08:36 2013 -0500
@@ -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
 
--- a/tests/test-revset.t	Thu Aug 15 13:42:56 2013 -0500
+++ b/tests/test-revset.t	Sat Sep 07 00:08:36 2013 -0500
@@ -328,6 +328,7 @@
   7
   $ log 'keyword(issue)'
   6
+  $ log 'keyword("test a")'
   $ log 'limit(head(), 1)'
   0
   $ log 'matching(6)'