Skip to content
Snippets Groups Projects
Commit 3f41e28a16d8 authored by Katsunori FUJIWARA's avatar Katsunori FUJIWARA
Browse files

dirstate: split write to write changes into files other than .hg/dirstate

'_writedirstate()' is used mainly for "transactional dirstate". See
the wiki page below for detail about it.

    https://mercurial.selenic.com/wiki/DirstateTransactionPlan
parent 46dec89fe888
No related branches found
No related tags found
No related merge requests found
......@@ -622,6 +622,9 @@
time.sleep(delaywrite)
st = self._opener(self._filename, "w", atomictemp=True)
self._writedirstate(st)
def _writedirstate(self, st):
# use the modification time of the newly created temporary file as the
# filesystem's notion of 'now'
now = util.fstat(st).st_mtime
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment