diff mercurial/hgweb/webcommands.py @ 7030:20a5dd5d6dd9

hgweb: let the web graph cope with low revisions/new repositories (issue1293)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 12 Sep 2008 16:15:01 +0200
parents b84d27386285
children 14f3ea2ea54f
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Sep 05 17:28:37 2008 +0200
+++ b/mercurial/hgweb/webcommands.py	Fri Sep 12 16:15:01 2008 +0200
@@ -588,7 +588,7 @@
     count = len(web.repo)
     changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx)
 
-    tree = list(graphmod.graph(web.repo, rev, rev - revcount))
+    tree = list(graphmod.graph(web.repo, rev, downrev))
     canvasheight = (len(tree) + 1) * bg_height - 27;
 
     data = []