Show More
@@ -503,18 +503,14 b' class dirstate(object):' | |||||
503 | if not self._dirty: |
|
503 | if not self._dirty: | |
504 | return |
|
504 | return | |
505 | st = self._opener("dirstate", "w", atomictemp=True) |
|
505 | st = self._opener("dirstate", "w", atomictemp=True) | |
506 |
|
506 | # use the modification time of the newly created temporary file as the | ||
507 | def finish(s): |
|
507 | # filesystem's notion of 'now' | |
508 | st.write(s) |
|
508 | now = util.fstat(st).st_mtime | |
|
509 | st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now)) | |||
509 |
|
|
510 | st.close() | |
510 |
|
|
511 | self._lastnormaltime = 0 | |
511 |
|
|
512 | self._dirty = self._dirtypl = False | |
512 |
|
513 | |||
513 | # use the modification time of the newly created temporary file as the |
|
|||
514 | # filesystem's notion of 'now' |
|
|||
515 | now = util.fstat(st).st_mtime |
|
|||
516 | finish(parsers.pack_dirstate(self._map, self._copymap, self._pl, now)) |
|
|||
517 |
|
||||
518 | def _dirignore(self, f): |
|
514 | def _dirignore(self, f): | |
519 | if f == '.': |
|
515 | if f == '.': | |
520 | return False |
|
516 | return False |
General Comments 0
You need to be logged in to leave comments.
Login now