Comments
Patch
@@ -855,12 +855,15 @@ def graph(web, req, tmpl):
uprev = min(max(0, count - 1), rev + revcount)
downrev = max(0, rev - revcount)
changenav = webutil.revnav(web.repo).gen(pos, revcount, count)
- dag = graphmod.dagwalker(web.repo, range(start, end)[::-1])
- tree = list(graphmod.colored(dag, web.repo))
+ tree = []
+ if start < end:
+ revs = list(web.repo.changelog.revs(end - 1, start))
+ dag = graphmod.dagwalker(web.repo, revs)
+ tree = list(graphmod.colored(dag, web.repo))
def getcolumns(tree):
cols = 0
for (id, type, ctx, vtx, edges) in tree:
if type != graphmod.CHANGESET:
@@ -665,14 +665,14 @@ check hgweb does not explode
check changelog view
$ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'shortlog/'
200 Script output follows
-#check graph view
-#
-# $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'graph'
-# 200 Script output follows
+check graph view
+
+ $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'graph'
+ 200 Script output follows
check filelog view
$ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'log/'`hg id --debug --id`/'babar'
200 Script output follows