mercurial/copies.py
changeset 26316 d5618e210191
parent 26315 3c6902ed9f07
child 26317 07ac78ba2e37
--- a/mercurial/copies.py	Wed Aug 19 13:09:54 2015 -0500
+++ b/mercurial/copies.py	Wed Aug 19 13:40:18 2015 -0500
@@ -316,9 +316,9 @@
             return fctx
         return util.lrucachefunc(makectx)
 
-    copy = {}
-    movewithdir = {}
-    fullcopy = {}
+    copy1, copy2, = {}, {}
+    movewithdir1, movewithdir2 = {}, {}
+    fullcopy1, fullcopy2 = {}, {}
     diverge = {}
 
     repo.ui.debug("  searching for copies back to rev %d\n" % limit)
@@ -329,11 +329,15 @@
 
     for f in u1:
         getfctx = setupctx(c1)
-        checkcopies(getfctx, f, m1, m2, ca, limit, diverge, copy, fullcopy)
+        checkcopies(getfctx, f, m1, m2, ca, limit, diverge, copy1, fullcopy1)
 
     for f in u2:
         getfctx = setupctx(c2)
-        checkcopies(getfctx, f, m2, m1, ca, limit, diverge, copy, fullcopy)
+        checkcopies(getfctx, f, m2, m1, ca, limit, diverge, copy2, fullcopy2)
+
+    copy = dict(copy1.items() + copy2.items())
+    movewithdir = dict(movewithdir1.items() + movewithdir2.items())
+    fullcopy = dict(fullcopy1.items() + fullcopy2.items())
 
     renamedelete = {}
     renamedelete2 = set()