Commit 8c131b97 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obshistory: give a more correct name to a variable

This variable holds a list of predecessors, which obslog presents to graphmod
as parents so the latter could understand the data without the need to
introduce another graph edge type specifically for predecessors.

Also remove debug comments.
parent 99123c3229b4
Pipeline #4675 failed with stage
in 5 minutes and 15 seconds
......@@ -369,10 +369,8 @@
relations = nodeprec.get(cand, ())
relations = obsutil.closestpredecessors(repo, cand)
# print("RELATIONS", relations, list(closestpred))
childrens = [(graphmod.PARENT, x) for x in relations]
# print("YIELD", changectx, childrens)
yield (cand, graphmod.CHANGESET, changectx, childrens)
parents = [(graphmod.PARENT, x) for x in relations]
yield (cand, graphmod.CHANGESET, changectx, parents)
def _obshistorywalker_links(repo, revs, walksuccessors=False):
""" Iterate the obs history tree starting from revs, traversing
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment