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