copies: rename diverge2 to divergeset for clarity
authorMatt Mackall <mpm@selenic.com>
Wed, 19 Aug 2015 14:04:54 -0500
changeset 26317 07ac78ba2e37
parent 26316 d5618e210191
child 26318 d3bd6cefd742
copies: rename diverge2 to divergeset for clarity
mercurial/copies.py
--- a/mercurial/copies.py	Wed Aug 19 13:40:18 2015 -0500
+++ b/mercurial/copies.py	Wed Aug 19 14:04:54 2015 -0500
@@ -341,7 +341,7 @@
 
     renamedelete = {}
     renamedelete2 = set()
-    diverge2 = set()
+    divergeset = set()
     for of, fl in diverge.items():
         if len(fl) == 1 or of in c1 or of in c2:
             del diverge[of] # not actually divergent, or not a rename
@@ -351,7 +351,7 @@
                 renamedelete[of] = [f for f in fl if f in c1 or f in c2]
                 renamedelete2.update(fl) # reverse map for below
         else:
-            diverge2.update(fl) # reverse map for below
+            divergeset.update(fl) # reverse map for below
 
     bothnew = sorted(addedinm1 & addedinm2)
     if bothnew:
@@ -376,13 +376,13 @@
             note = ""
             if f in copy:
                 note += "*"
-            if f in diverge2:
+            if f in divergeset:
                 note += "!"
             if f in renamedelete2:
                 note += "%"
             repo.ui.debug("   src: '%s' -> dst: '%s' %s\n" % (fullcopy[f], f,
                                                               note))
-    del diverge2
+    del divergeset
 
     if not fullcopy:
         return copy, movewithdir, diverge, renamedelete