Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 14043:1c1e1232abdc
graphlog: make use of graphmod's revset support
author | Alexander Solovyov <alexander@solovyov.net> |
---|---|
date | Sat, 23 Apr 2011 15:04:15 +0200 |
parents | c3372529247f |
children | 421d56a055fd |
comparison
equal
deleted
inserted
replaced
14042:9966c95b8c4f | 14043:1c1e1232abdc |
---|---|
753 startrev = rev | 753 startrev = rev |
754 # if starting revision is less than 60 set it to uprev | 754 # if starting revision is less than 60 set it to uprev |
755 if rev < web.maxshortchanges: | 755 if rev < web.maxshortchanges: |
756 startrev = uprev | 756 startrev = uprev |
757 | 757 |
758 dag = graphmod.revisions(web.repo, startrev, downrev) | 758 dag = graphmod.dagwalker(web.repo, range(startrev, downrev - 1, -1)) |
759 tree = list(graphmod.colored(dag)) | 759 tree = list(graphmod.colored(dag)) |
760 canvasheight = (len(tree) + 1) * bg_height - 27 | 760 canvasheight = (len(tree) + 1) * bg_height - 27 |
761 data = [] | 761 data = [] |
762 for (id, type, ctx, vtx, edges) in tree: | 762 for (id, type, ctx, vtx, edges) in tree: |
763 if type != graphmod.CHANGESET: | 763 if type != graphmod.CHANGESET: |