Show More
@@ -300,7 +300,7 b' def _search(web, req, tmpl):' | |||||
300 | pass |
|
300 | pass | |
301 |
|
301 | |||
302 | lessvars = copy.copy(tmpl.defaults['sessionvars']) |
|
302 | lessvars = copy.copy(tmpl.defaults['sessionvars']) | |
303 | lessvars['revcount'] = max(revcount / 2, 1) |
|
303 | lessvars['revcount'] = max(revcount // 2, 1) | |
304 | lessvars['rev'] = query |
|
304 | lessvars['rev'] = query | |
305 | morevars = copy.copy(tmpl.defaults['sessionvars']) |
|
305 | morevars = copy.copy(tmpl.defaults['sessionvars']) | |
306 | morevars['revcount'] = revcount * 2 |
|
306 | morevars['revcount'] = revcount * 2 | |
@@ -395,7 +395,7 b' def changelog(web, req, tmpl, shortlog=F' | |||||
395 | pass |
|
395 | pass | |
396 |
|
396 | |||
397 | lessvars = copy.copy(tmpl.defaults['sessionvars']) |
|
397 | lessvars = copy.copy(tmpl.defaults['sessionvars']) | |
398 | lessvars['revcount'] = max(revcount / 2, 1) |
|
398 | lessvars['revcount'] = max(revcount // 2, 1) | |
399 | morevars = copy.copy(tmpl.defaults['sessionvars']) |
|
399 | morevars = copy.copy(tmpl.defaults['sessionvars']) | |
400 | morevars['revcount'] = revcount * 2 |
|
400 | morevars['revcount'] = revcount * 2 | |
401 |
|
401 | |||
@@ -990,7 +990,7 b' def filelog(web, req, tmpl):' | |||||
990 | lrange = webutil.linerange(req) |
|
990 | lrange = webutil.linerange(req) | |
991 |
|
991 | |||
992 | lessvars = copy.copy(tmpl.defaults['sessionvars']) |
|
992 | lessvars = copy.copy(tmpl.defaults['sessionvars']) | |
993 | lessvars['revcount'] = max(revcount / 2, 1) |
|
993 | lessvars['revcount'] = max(revcount // 2, 1) | |
994 | morevars = copy.copy(tmpl.defaults['sessionvars']) |
|
994 | morevars = copy.copy(tmpl.defaults['sessionvars']) | |
995 | morevars['revcount'] = revcount * 2 |
|
995 | morevars['revcount'] = revcount * 2 | |
996 |
|
996 | |||
@@ -1208,7 +1208,7 b' def graph(web, req, tmpl):' | |||||
1208 | pass |
|
1208 | pass | |
1209 |
|
1209 | |||
1210 | lessvars = copy.copy(tmpl.defaults['sessionvars']) |
|
1210 | lessvars = copy.copy(tmpl.defaults['sessionvars']) | |
1211 | lessvars['revcount'] = max(revcount / 2, 1) |
|
1211 | lessvars['revcount'] = max(revcount // 2, 1) | |
1212 | morevars = copy.copy(tmpl.defaults['sessionvars']) |
|
1212 | morevars = copy.copy(tmpl.defaults['sessionvars']) | |
1213 | morevars['revcount'] = revcount * 2 |
|
1213 | morevars['revcount'] = revcount * 2 | |
1214 |
|
1214 |
General Comments 0
You need to be logged in to leave comments.
Login now