changeset 19707:591cbff13a7f

merge with stable
author Kevin Bullock <kbullock@ringworld.org>
date Sat, 07 Sep 2013 00:08:36 -0500
parents 79792c8ea6da (current diff) 26ddce1a2a55 (diff)
children 600ea1a6884c
files
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)'