# HG changeset patch # User Anton Shestakov # Date 1585472457 -25200 # Node ID 8c131b97e197ad0bdc2ebdf52e63ee3aae8731db # Parent 99123c3229b44d63c8656662bb8c326910c5a59d 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. diff -r 99123c3229b4 -r 8c131b97e197 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