# HG changeset patch # User Gábor Stefanik # Date 2016-10-03 11:23:19 # Node ID d13a7c8bf0a5b5bd311cf3adfa879b52c88427da # Parent cfdbada917cd65f653b46f4e7c60659fa446cf06 copies: split u1/u2 to u1u/u2u and u1r/u2r These will be made different in case of grafts by another patch in this series. diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -340,13 +340,14 @@ def mergecopies(repo, c1, c2, ca): # find interesting file sets from manifests addedinm1 = m1.filesnotin(ma) addedinm2 = m2.filesnotin(ma) - u1, u2 = _computenonoverlap(repo, c1, c2, addedinm1, addedinm2) + u1r, u2r = _computenonoverlap(repo, c1, c2, addedinm1, addedinm2) + u1u, u2u = u1r, u2r bothnew = sorted(addedinm1 & addedinm2) - for f in u1: + for f in u1u: checkcopies(c1, f, m1, m2, ca, limit, diverge, copy1, fullcopy1) - for f in u2: + for f in u2u: checkcopies(c2, f, m2, m1, ca, limit, diverge, copy2, fullcopy2) copy = dict(copy1.items() + copy2.items()) @@ -439,7 +440,7 @@ def mergecopies(repo, c1, c2, ca): (d, dirmove[d])) # check unaccounted nonoverlapping files against directory moves - for f in u1 + u2: + for f in u1r + u2r: if f not in fullcopy: for d in dirmove: if f.startswith(d):