##// END OF EJS Templates
dirstate: split write to write changes into files other than .hg/dirstate...
FUJIWARA Katsunori -
r26521:3f41e28a default
parent child Browse files
Show More
@@ -622,6 +622,9 b' class dirstate(object):'
622 time.sleep(delaywrite)
622 time.sleep(delaywrite)
623
623
624 st = self._opener(self._filename, "w", atomictemp=True)
624 st = self._opener(self._filename, "w", atomictemp=True)
625 self._writedirstate(st)
626
627 def _writedirstate(self, st):
625 # use the modification time of the newly created temporary file as the
628 # use the modification time of the newly created temporary file as the
626 # filesystem's notion of 'now'
629 # filesystem's notion of 'now'
627 now = util.fstat(st).st_mtime
630 now = util.fstat(st).st_mtime
General Comments 0
You need to be logged in to leave comments. Login now