diff mercurial/transaction.py @ 23358:1b51d1b05482

transaction: write pending generated files Such file are generated with a .pending prefix. It is up to the reader to implement the necessary logic for reading pending files. We add a test to ensure pending files are properly cleaned-up in both success and error cases.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 17 Oct 2014 22:19:05 -0700
parents ba033f461f00
children 0ff6b65afeb0
line wrap: on
line diff
--- a/mercurial/transaction.py	Fri Oct 17 21:57:32 2014 -0700
+++ b/mercurial/transaction.py	Fri Oct 17 22:19:05 2014 -0700
@@ -342,6 +342,7 @@
             # remove callback since the data will have been flushed
             any = self._pendingcallback.pop(cat)(self)
             self._anypending = self._anypending or any
+        self._anypending |= self._generatefiles(suffix='.pending')
         return self._anypending
 
     @active