D673: merge: flush any deferred writes just before recordupdates()

phillco (Phil Cohen) phabricator at mercurial-scm.org
Mon Sep 11 04:03:30 UTC 2017


phillco created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  ``recordupdates`` calls into the dirstate which requires the files to be
  there, so this is the last possible moment we can flush anything.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D673

AFFECTED FILES
  mercurial/merge.py

CHANGE DETAILS

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -1699,6 +1699,7 @@
             repo.vfs.write('updatestate', p2.hex())
 
         stats = applyupdates(repo, actions, wc, p2, overwrite, labels=labels)
+        wc.flushall()
 
         if not partial:
             with repo.dirstate.parentchange():



To: phillco, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list