Show More
@@ -124,7 +124,8 b' def _search(web, req, tmpl):' | |||
|
124 | 124 | |
|
125 | 125 | def changelist(**map): |
|
126 | 126 | count = 0 |
|
127 | qw = query.lower().split() | |
|
127 | lower = encoding.lower | |
|
128 | qw = lower(query).split() | |
|
128 | 129 | |
|
129 | 130 | def revgen(): |
|
130 | 131 | for i in xrange(len(web.repo) - 1, 0, -100): |
@@ -139,9 +140,9 b' def _search(web, req, tmpl):' | |||
|
139 | 140 | for ctx in revgen(): |
|
140 | 141 | miss = 0 |
|
141 | 142 | for q in qw: |
|
142 |
if not (q in ctx.user() |
|
|
143 |
q in ctx.description() |
|
|
144 |
q in " ".join(ctx.files()) |
|
|
143 | if not (q in lower(ctx.user()) or | |
|
144 | q in lower(ctx.description()) or | |
|
145 | q in lower(" ".join(ctx.files()))): | |
|
145 | 146 | miss = 1 |
|
146 | 147 | break |
|
147 | 148 | if miss: |
General Comments 0
You need to be logged in to leave comments.
Login now