Mercurial > evolve
changeset 5216:8c131b97e197
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 29 Mar 2020 16:00:57 +0700 |
parents | 99123c3229b4 |
children | 678a9223aad3 |
files | hgext3rd/evolve/obshistory.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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