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.
--- a/hgext3rd/evolve/obshistory.py Fri Mar 27 04:30:22 2020 +0100
+++ b/hgext3rd/evolve/obshistory.py Sun Mar 29 16:00:57 2020 +0700
@@ -369,10 +369,8 @@
relations = nodeprec.get(cand, ())
else:
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