evolve: rename npublicdiv to publicnode
authorSushil khanchi <sushilkhanchi97@gmail.com>
Thu, 28 Feb 2019 02:08:58 +0530
changeset 4415 29733c2b0fd3
parent 4414 29645d5ba3d9
child 4416 b2a8e67b0933
evolve: rename npublicdiv to publicnode In next patches it would make more sense to use publicnode instead of npublicdiv.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Thu Feb 28 02:02:18 2019 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Thu Feb 28 02:08:58 2019 +0530
@@ -568,8 +568,8 @@
     haspubdiv = False
     if evolvestate.get('public-divergent'):
         haspubdiv = True
-        npublicdiv = evolvestate['public-divergent']
-        publicdiv = repo[npublicdiv]
+        publicnode = evolvestate['public-divergent']
+        publicdiv = repo[publicnode]
     try:
         with repo.dirstate.parentchange():
             repo.dirstate.setparents(resparent, nodemod.nullid)
@@ -1899,14 +1899,14 @@
         origdivergent = evolvestate['orig-divergent']
         evolvestate['replacements'][origdivergent] = ret[1]
         # logic to continue the public content-divergent
-        publicdiv = evolvestate.get('public-divergent')
-        if publicdiv:
+        publicnode = evolvestate.get('public-divergent')
+        if publicnode:
             res, newnode = ret
             if not res:
                 # no need to proceed for phase divergence resolution step
                 pass
             else:
-                prec = repo[publicdiv]
+                prec = repo[publicnode]
                 bumped = repo[newnode]
                 ret = _resolvephasedivergent(ui, repo, prec=prec,
                                              bumped=bumped, tmpctx=bumped)