changeset 10245 | 207b94f6b65d |
parent 9404 | 4483af166c61 |
child 10246 | b9d02695bde4 |
--- a/mercurial/hgweb/webcommands.py Wed Jan 13 12:00:06 2010 +0100 +++ b/mercurial/hgweb/webcommands.py Thu Jan 14 16:07:34 2010 +0100 @@ -654,10 +654,10 @@ return [staticfile(static, fname, req)] def graph(web, req, tmpl): + rev = webutil.changectx(web.repo, req).rev() bg_height = 39 - - revcount = 25 + revcount = web.maxshortchanges if 'revcount' in req.form: revcount = int(req.form.get('revcount', [revcount])[0]) tmpl.defaults['sessionvars']['revcount'] = revcount