merge: reorder dirstate update slightly for correctness
authorMatt Mackall <mpm@selenic.com>
Wed, 04 Oct 2006 14:09:26 -0500
changeset 3248 7a0d70b69d74
parent 3246 27139167e615
child 3249 168485fa44ba
child 3254 751840e739a1
merge: reorder dirstate update slightly for correctness
mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -379,8 +379,8 @@ def update(repo, node, branchmerge=False
 
     # update dirstate
     if not partial:
+        recordupdates(repo, action, branchmerge)
         repo.dirstate.setparents(p1.node(), p2.node())
-        recordupdates(repo, action, branchmerge)
 
     if show_stats:
         stats = ((updated, _("updated")),