Mercurial > evolve
changeset 5017:b302066725c3
evolve: use meaningful variable names for a return value
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 27 Nov 2019 19:50:33 +0530 |
parents | 64868b7dc112 |
children | f1e90ce1d372 |
files | hgext3rd/evolve/evolvecmd.py |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/evolvecmd.py Wed Nov 27 12:34:19 2019 +0530 +++ b/hgext3rd/evolve/evolvecmd.py Wed Nov 27 19:50:33 2019 +0530 @@ -2072,17 +2072,17 @@ divergent = evolvestate[b'divergent'] other = evolvestate[b'other-divergent'] - ret = _completecontentdivergent(ui, repo, progresscb, - repo[divergent], - repo[other], - repo[base], - evolvestate) + res, newnode = _completecontentdivergent(ui, repo, progresscb, + repo[divergent], + repo[other], + repo[base], + evolvestate) origdivergent = evolvestate[b'orig-divergent'] - evolvestate[b'replacements'][origdivergent] = ret[1] + evolvestate[b'replacements'][origdivergent] = newnode + ret = (res, newnode) # logic to continue the public content-divergent publicnode = evolvestate.get(b'public-divergent') if publicnode: - res, newnode = ret if not res: # no need to proceed for phase divergence resolution step pass