merge: run _forgetremoved after manifestmerge
authorSiddharth Agarwal <sid0@fb.com>
Sun, 10 Feb 2013 12:16:46 +0000
changeset 18650 de0bd4bfc6d7
parent 18649 0969980308c7
child 18651 e556659340f0
merge: run _forgetremoved after manifestmerge _forgetremoved can trigger manifest construction, but we only want it to happen after manifestmerge, so that our attempt to read the manifests in the right order in an upcoming patch actually works.
mercurial/merge.py
--- a/mercurial/merge.py	Sun Feb 10 16:23:14 2013 +0000
+++ b/mercurial/merge.py	Sun Feb 10 12:16:46 2013 +0000
@@ -515,12 +515,12 @@
             _checkcollision(mctx, None)
         else:
             _checkcollision(mctx, (tctx, ancestor))
-    if tctx.rev() is None:
-        actions += _forgetremoved(tctx, mctx, branchmerge)
     actions += manifestmerge(repo, tctx, mctx,
                              ancestor,
                              branchmerge, force,
                              partial)
+    if tctx.rev() is None:
+        actions += _forgetremoved(tctx, mctx, branchmerge)
     return actions
 
 def recordupdates(repo, actions, branchmerge):