hgweb: fix pagination for graph
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 07 Nov 2008 15:40:36 +0100
changeset 7332 5c95d7667dd1
parent 7331 650e9d6988cb
child 7333 ee12d9dc5cbb
hgweb: fix pagination for graph
mercurial/hgweb/webcommands.py
--- 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;