merge: drop unused diverge initialization
authorMatt Mackall <mpm@selenic.com>
Mon, 08 Jun 2009 18:14:44 -0500
changeset 8750 9b8733291dd0
parent 8749 69caf50da4a0
child 8751 e8d80e0835c7
merge: drop unused diverge initialization
mercurial/merge.py
--- a/mercurial/merge.py	Mon Jun 08 18:14:44 2009 -0500
+++ b/mercurial/merge.py	Mon Jun 08 18:14:44 2009 -0500
@@ -130,7 +130,7 @@
     repo.ui.debug(_(" ancestor %s local %s remote %s\n") % (pa, p1, p2))
 
     action = []
-    copy, copied, diverge = {}, {}, {}
+    copy, copied = {}, {}
     m1 = p1.manifest()
     m2 = p2.manifest()
 
@@ -164,9 +164,9 @@
         if pa and repo.ui.configbool("merge", "followcopies", True):
             dirs = repo.ui.configbool("merge", "followdirs", True)
             copy, diverge = copies.copies(repo, p1, p2, pa, dirs)
-        copied = set(copy.values())
-        for of, fl in diverge.iteritems():
-            act("divergent renames", "dr", of, fl)
+            for of, fl in diverge.iteritems():
+                act("divergent renames", "dr", of, fl)
+            copied = set(copy.values())
 
     # Compare manifests
     for f, n in m1.iteritems():