Show More
@@ -921,13 +921,13 b' def keyword(repo, subset, x):' | |||||
921 | """ |
|
921 | """ | |
922 | # i18n: "keyword" is a keyword |
|
922 | # i18n: "keyword" is a keyword | |
923 | kw = encoding.lower(getstring(x, _("keyword requires a string"))) |
|
923 | kw = encoding.lower(getstring(x, _("keyword requires a string"))) | |
924 | l = [] |
|
924 | ||
925 | for r in subset: |
|
925 | def matches(r): | |
926 | c = repo[r] |
|
926 | c = repo[r] | |
927 |
|
|
927 | return util.any(kw in encoding.lower(t) for t in c.files() + [c.user(), | |
928 | for t in c.files() + [c.user(), c.description()]): |
|
928 | c.description()]) | |
929 | l.append(r) |
|
929 | ||
930 |
return |
|
930 | return lazyset(subset, matches) | |
931 |
|
931 | |||
932 | def limit(repo, subset, x): |
|
932 | def limit(repo, subset, x): | |
933 | """``limit(set, [n])`` |
|
933 | """``limit(set, [n])`` |
General Comments 0
You need to be logged in to leave comments.
Login now