1. Benoit Boissinot
  2. mercurial/crew/tonfa

Commits

Dirkjan Ochtman  committed 5c95d76

hgweb: fix pagination for graph

  • Participants
  • Parent commits 650e9d6
  • Branches default

Comments (0)

Files changed (1)

File mercurial/hgweb/webcommands.py

View file
     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;