##// END OF EJS Templates
dirstate: inline local finish function...
Mads Kiilerich -
r21026:7ee03e19 default
parent child Browse files
Show More
@@ -503,17 +503,13 b' class dirstate(object):'
503 503 if not self._dirty:
504 504 return
505 505 st = self._opener("dirstate", "w", atomictemp=True)
506
507 def finish(s):
508 st.write(s)
509 st.close()
510 self._lastnormaltime = 0
511 self._dirty = self._dirtypl = False
512
513 506 # use the modification time of the newly created temporary file as the
514 507 # filesystem's notion of 'now'
515 508 now = util.fstat(st).st_mtime
516 finish(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
509 st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
510 st.close()
511 self._lastnormaltime = 0
512 self._dirty = self._dirtypl = False
517 513
518 514 def _dirignore(self, f):
519 515 if f == '.':
General Comments 0
You need to be logged in to leave comments. Login now