merge: simplify tests for local changed/remote deleted
authorMatt Mackall <mpm@selenic.com>
Sun, 17 Sep 2006 20:18:27 -0500
changeset 3117 7a635ef25132
parent 3116 920f54a2249e
child 3118 5644a05a608c
merge: simplify tests for local changed/remote deleted
mercurial/merge.py
--- a/mercurial/merge.py	Sun Sep 17 20:10:54 2006 -0500
+++ b/mercurial/merge.py	Sun Sep 17 20:18:27 2006 -0500
@@ -148,12 +148,10 @@
                         action.append((f, "e", m2.execf(f)))
             del m2[f]
         elif f in ma:
-            if n != ma[f]:
-                r = _("d")
-                if not overwrite:
-                    r = ui.prompt(
-                        (_(" local changed %s which remote deleted\n") % f) +
-                         _("(k)eep or (d)elete?"), _("[kd]"), _("k"))
+            if n != ma[f] and not overwrite:
+                r = ui.prompt(
+                    (_(" local changed %s which remote deleted\n") % f) +
+                    _("(k)eep or (d)elete?"), _("[kd]"), _("k"))
                 if r == _("d"):
                     action.append((f, "r"))
             else: