merge: flush any deferred writes just before recordupdates()

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

Differential Revision: https://phab.mercurial-scm.org/D673
This commit is contained in:
Phil Cohen 2017-09-11 13:17:43 -07:00
parent 0e9cb373ec
commit b481a15354

View File

@ -1712,6 +1712,7 @@ def update(repo, node, branchmerge, force, ancestor=None,
repo.vfs.write('updatestate', p2.hex())
stats = applyupdates(repo, actions, wc, p2, overwrite, labels=labels)
wc.flushall()
if not partial:
with repo.dirstate.parentchange():