obshistory: give a more correct name to a variable
authorAnton Shestakov <av6@dwimlabs.net>
Sun, 29 Mar 2020 16:00:57 +0700
changeset 5216 8c131b97e197
parent 5212 99123c3229b4
child 5262 678a9223aad3
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.
hgext3rd/evolve/obshistory.py
--- 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