Show More
@@ -110,20 +110,6 b' def file(web, req, tmpl):' | |||||
110 |
|
110 | |||
111 | def _search(web, req, tmpl): |
|
111 | def _search(web, req, tmpl): | |
112 |
|
112 | |||
113 | query = req.form['rev'][0] |
|
|||
114 | revcount = web.maxchanges |
|
|||
115 | if 'revcount' in req.form: |
|
|||
116 | revcount = int(req.form.get('revcount', [revcount])[0]) |
|
|||
117 | revcount = max(revcount, 1) |
|
|||
118 | tmpl.defaults['sessionvars']['revcount'] = revcount |
|
|||
119 |
|
||||
120 | lessvars = copy.copy(tmpl.defaults['sessionvars']) |
|
|||
121 | lessvars['revcount'] = max(revcount / 2, 1) |
|
|||
122 | lessvars['rev'] = query |
|
|||
123 | morevars = copy.copy(tmpl.defaults['sessionvars']) |
|
|||
124 | morevars['revcount'] = revcount * 2 |
|
|||
125 | morevars['rev'] = query |
|
|||
126 |
|
||||
127 | def changelist(**map): |
|
113 | def changelist(**map): | |
128 | count = 0 |
|
114 | count = 0 | |
129 | lower = encoding.lower |
|
115 | lower = encoding.lower | |
@@ -176,6 +162,20 b' def _search(web, req, tmpl):' | |||||
176 | if count >= revcount: |
|
162 | if count >= revcount: | |
177 | break |
|
163 | break | |
178 |
|
164 | |||
|
165 | query = req.form['rev'][0] | |||
|
166 | revcount = web.maxchanges | |||
|
167 | if 'revcount' in req.form: | |||
|
168 | revcount = int(req.form.get('revcount', [revcount])[0]) | |||
|
169 | revcount = max(revcount, 1) | |||
|
170 | tmpl.defaults['sessionvars']['revcount'] = revcount | |||
|
171 | ||||
|
172 | lessvars = copy.copy(tmpl.defaults['sessionvars']) | |||
|
173 | lessvars['revcount'] = max(revcount / 2, 1) | |||
|
174 | lessvars['rev'] = query | |||
|
175 | morevars = copy.copy(tmpl.defaults['sessionvars']) | |||
|
176 | morevars['revcount'] = revcount * 2 | |||
|
177 | morevars['rev'] = query | |||
|
178 | ||||
179 | tip = web.repo['tip'] |
|
179 | tip = web.repo['tip'] | |
180 | parity = paritygen(web.stripecount) |
|
180 | parity = paritygen(web.stripecount) | |
181 |
|
181 |
General Comments 0
You need to be logged in to leave comments.
Login now