diff mercurial/hgweb/webcommands.py @ 10245:207b94f6b65d

hgweb: make graph page size equal to shortlog
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 14 Jan 2010 16:07:34 +0100
parents 4483af166c61
children b9d02695bde4
line wrap: on
line diff
--- 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