##// END OF EJS Templates
graph: limit the number of displayed changest to a reasonable value
Benoit Allard -
r6704:8251ffb3 default
parent child Browse files
Show More
@@ -578,10 +578,10 b' def static(web, req, tmpl):'
578
578
579 def graph(web, req, tmpl):
579 def graph(web, req, tmpl):
580 rev = webutil.changectx(web.repo, req).rev()
580 rev = webutil.changectx(web.repo, req).rev()
581 revcount = int(req.form.get('revcount', [25])[0])
582 bg_height = 39
581 bg_height = 39
583
582
584 max_rev = web.repo.changelog.count() - 1
583 max_rev = web.repo.changelog.count() - 1
584 revcount = min(max_rev, int(req.form.get('revcount', [25])[0]))
585 revnode = web.repo.changelog.node(rev)
585 revnode = web.repo.changelog.node(rev)
586 revnode_hex = hex(revnode)
586 revnode_hex = hex(revnode)
587 uprev = min(max_rev, rev + revcount)
587 uprev = min(max_rev, rev + revcount)
General Comments 0
You need to be logged in to leave comments. Login now