##// END OF EJS Templates
dirstate: delay writing out to ensure timestamp of each entries explicitly...
FUJIWARA Katsunori -
r21931:89b809fa stable
parent child Browse files
Show More
@@ -504,6 +504,14 b' class dirstate(object):'
504 504 def write(self):
505 505 if not self._dirty:
506 506 return
507
508 # enough 'delaywrite' prevents 'pack_dirstate' from dropping
509 # timestamp of each entries in dirstate, because of 'now > mtime'
510 delaywrite = self._ui.configint('debug', 'dirstate.delaywrite', 0)
511 if delaywrite:
512 import time # to avoid useless import
513 time.sleep(delaywrite)
514
507 515 st = self._opener("dirstate", "w", atomictemp=True)
508 516 # use the modification time of the newly created temporary file as the
509 517 # filesystem's notion of 'now'
General Comments 0
You need to be logged in to leave comments. Login now