diff -r c4c0502be198 -r 207b94f6b65d mercurial/hgweb/webcommands.py --- 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