Show More
@@ -110,7 +110,7 b' def file(web, req, tmpl):' | |||
|
110 | 110 | |
|
111 | 111 | def _search(web, req, tmpl): |
|
112 | 112 | |
|
113 | def keywordsearch(): | |
|
113 | def keywordsearch(query): | |
|
114 | 114 | lower = encoding.lower |
|
115 | 115 | qw = lower(query).split() |
|
116 | 116 | |
@@ -142,13 +142,13 b' def _search(web, req, tmpl):' | |||
|
142 | 142 | 'keyword': keywordsearch, |
|
143 | 143 | } |
|
144 | 144 | |
|
145 | def getsearchmode(): | |
|
146 | return 'keyword' | |
|
145 | def getsearchmode(query): | |
|
146 | return 'keyword', query | |
|
147 | 147 | |
|
148 | 148 | def changelist(**map): |
|
149 | 149 | count = 0 |
|
150 | 150 | |
|
151 | for ctx in searchfunc(): | |
|
151 | for ctx in searchfunc(funcarg): | |
|
152 | 152 | count += 1 |
|
153 | 153 | n = ctx.node() |
|
154 | 154 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |
@@ -188,7 +188,7 b' def _search(web, req, tmpl):' | |||
|
188 | 188 | morevars['revcount'] = revcount * 2 |
|
189 | 189 | morevars['rev'] = query |
|
190 | 190 | |
|
191 | mode = getsearchmode() | |
|
191 | mode, funcarg = getsearchmode(query) | |
|
192 | 192 | searchfunc = searchfuncs[mode] |
|
193 | 193 | |
|
194 | 194 | tip = web.repo['tip'] |
General Comments 0
You need to be logged in to leave comments.
Login now