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