changeset 3161:84561ea8711e

merge: move findcopies after workingmanifest
author Matt Mackall <mpm@selenic.com>
date Tue, 26 Sep 2006 16:04:07 -0500
parents 1839e6e91c3a
children a9e75b371315
files mercurial/merge.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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