changeset 8837 | d8e3a98018cb |
parent 8836 | 11ff34956ee7 |
child 8840 | d9acbe7b0049 |
--- a/mercurial/graphmod.py Fri Jun 19 13:14:01 2009 +0200 +++ b/mercurial/graphmod.py Fri Jun 19 13:14:45 2009 +0200 @@ -42,6 +42,14 @@ break filerev -= 1 +def nodes(repo, nodes): + include = set(nodes) + for node in nodes: + ctx = repo[node] + parents = [p.rev() for p in ctx.parents() if p.node() in include] + parents.sort() + yield (ctx, parents) + def graph(repo, start_rev, stop_rev): """incremental revision grapher