Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
7029:b84d27386285 | 7030:20a5dd5d6dd9 |
---|---|
586 | 586 |
587 maxchanges = web.maxshortchanges or web.maxchanges | 587 maxchanges = web.maxshortchanges or web.maxchanges |
588 count = len(web.repo) | 588 count = len(web.repo) |
589 changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx) | 589 changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx) |
590 | 590 |
591 tree = list(graphmod.graph(web.repo, rev, rev - revcount)) | 591 tree = list(graphmod.graph(web.repo, rev, downrev)) |
592 canvasheight = (len(tree) + 1) * bg_height - 27; | 592 canvasheight = (len(tree) + 1) * bg_height - 27; |
593 | 593 |
594 data = [] | 594 data = [] |
595 for i, (ctx, vtx, edges) in enumerate(tree): | 595 for i, (ctx, vtx, edges) in enumerate(tree): |
596 node = short(ctx.node()) | 596 node = short(ctx.node()) |