##// END OF EJS Templates
hgweb: fix inconsistant display of graphlog (issue1706)
Md. O. Shayan -
r13905:08d49b6b stable
parent child Browse files
Show More
@@ -740,8 +740,12 b' def graph(web, req, tmpl):'
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 startrev = rev
744 # if starting revision is less than 60 set it to uprev
745 if rev < web.maxshortchanges:
746 startrev = uprev
743
747
744 dag = graphmod.revisions(web.repo, rev, downrev)
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 = []
General Comments 0
You need to be logged in to leave comments. Login now