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