mercurial/context.py
changeset 25757 4d1382fd96ff
parent 25753 fe03f522dda9
child 25844 18541e9510c5
--- a/mercurial/context.py	Wed Jul 08 17:01:09 2015 +0900
+++ b/mercurial/context.py	Wed Jul 08 17:01:09 2015 +0900
@@ -1316,6 +1316,11 @@
         self._repo.dirstate.setparents(node)
         self._repo.dirstate.endparentchange()
 
+        # write changes out explicitly, because nesting wlock at
+        # runtime may prevent 'wlock.release()' in 'repo.commit()'
+        # from immediately doing so for subsequent changing files
+        self._repo.dirstate.write()
+
 class workingctx(committablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.