--- 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)'