Mercurial > hg
changeset 13905:08d49b6b8d32 stable
hgweb: fix inconsistant display of graphlog (issue1706)
author | Md. O. Shayan <mdoshayan@gmail.com> |
---|---|
date | Thu, 07 Apr 2011 13:23:07 +0530 |
parents | 5065e120636d |
children | a1e418070ff6 71ea5b2b9517 |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Thu Apr 07 11:17:55 2011 +0200 +++ b/mercurial/hgweb/webcommands.py Thu Apr 07 13:23:07 2011 +0530 @@ -740,8 +740,12 @@ downrev = max(0, rev - revcount) count = len(web.repo) changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx) + startrev = rev + # if starting revision is less than 60 set it to uprev + if rev < web.maxshortchanges: + startrev = uprev - dag = graphmod.revisions(web.repo, rev, downrev) + dag = graphmod.revisions(web.repo, startrev, downrev) tree = list(graphmod.colored(dag)) canvasheight = (len(tree) + 1) * bg_height - 27 data = []