Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 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 | 5c18a0bca26f |
children | b8dd2e95b0ca |
comparison
equal
deleted
inserted
replaced
13904:5065e120636d | 13905:08d49b6b8d32 |
---|---|
738 revnode_hex = hex(revnode) | 738 revnode_hex = hex(revnode) |
739 uprev = min(max_rev, rev + revcount) | 739 uprev = min(max_rev, rev + revcount) |
740 downrev = max(0, rev - revcount) | 740 downrev = max(0, rev - revcount) |
741 count = len(web.repo) | 741 count = len(web.repo) |
742 changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx) | 742 changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx) |
743 | 743 startrev = rev |
744 dag = graphmod.revisions(web.repo, rev, downrev) | 744 # if starting revision is less than 60 set it to uprev |
745 if rev < web.maxshortchanges: | |
746 startrev = uprev | |
747 | |
748 dag = graphmod.revisions(web.repo, startrev, downrev) | |
745 tree = list(graphmod.colored(dag)) | 749 tree = list(graphmod.colored(dag)) |
746 canvasheight = (len(tree) + 1) * bg_height - 27 | 750 canvasheight = (len(tree) + 1) * bg_height - 27 |
747 data = [] | 751 data = [] |
748 for (id, type, ctx, vtx, edges) in tree: | 752 for (id, type, ctx, vtx, edges) in tree: |
749 if type != graphmod.CHANGESET: | 753 if type != graphmod.CHANGESET: |