merge: move findcopies after workingmanifest
authorMatt Mackall <mpm@selenic.com>
Tue, 26 Sep 2006 16:04:07 -0500
changeset 3161 84561ea8711e
parent 3160 1839e6e91c3a
child 3162 a9e75b371315
merge: move findcopies after workingmanifest
mercurial/merge.py
--- a/mercurial/merge.py	Tue Sep 26 15:58:51 2006 -0500
+++ b/mercurial/merge.py	Tue Sep 26 16:04:07 2006 -0500
@@ -360,10 +360,7 @@
                   (short(p1), short(p2), short(pa)))
 
     action = []
-
     copy = {}
-    if not (backwards or overwrite):
-        copy = findcopies(repo, m1, m2, repo.changelog.rev(pa))
 
     m1 = workingmanifest(repo, m1, status)
 
@@ -371,6 +368,8 @@
         checkunknown(repo, m2, status)
     if not branchmerge:
         action += forgetremoved(m2, status)
+    if not (backwards or overwrite):
+        copy = findcopies(repo, m1, m2, repo.changelog.rev(pa))
 
     action += manifestmerge(repo.ui, m1, m2, ma, overwrite, backwards, partial)
     del m1, m2, ma