# HG changeset patch # User Matt Mackall # Date 1440009618 18000 # Node ID d5618e210191d242d4ddb1d19ff36098cdca528f # Parent 3c6902ed9f07522fa9b91e178195f5f72759d650 copies: begin separating mergecopies sides diff -r 3c6902ed9f07 -r d5618e210191 mercurial/copies.py --- 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()