changeset 7332:5c95d7667dd1

hgweb: fix pagination for graph
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 07 Nov 2008 15:40:36 +0100
parents 650e9d6988cb
children ee12d9dc5cbb
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Nov 07 13:22:41 2008 +0100
+++ b/mercurial/hgweb/webcommands.py	Fri Nov 07 15:40:36 2008 +0100
@@ -627,9 +627,8 @@
     downrev = max(0, rev - revcount)
     lessrev = max(0, rev - revcount / 2)
 
-    maxchanges = web.maxshortchanges or web.maxchanges
     count = len(web.repo)
-    changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx)
+    changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx)
 
     tree = list(graphmod.graph(web.repo, rev, downrev))
     canvasheight = (len(tree) + 1) * bg_height - 27;