##// END OF EJS Templates
dirstate: only invoke delaywrite if relevant...
Matt Mackall -
r27398:c8167577 default
parent child Browse files
Show More
@@ -708,8 +708,12 b' class dirstate(object):'
708 # timestamp of each entries in dirstate, because of 'now > mtime'
708 # timestamp of each entries in dirstate, because of 'now > mtime'
709 delaywrite = self._ui.configint('debug', 'dirstate.delaywrite', 0)
709 delaywrite = self._ui.configint('debug', 'dirstate.delaywrite', 0)
710 if delaywrite > 0:
710 if delaywrite > 0:
711 import time # to avoid useless import
711 # do we have any files to delay for?
712 time.sleep(delaywrite)
712 for f, e in self._map.iteritems():
713 if e[0] == 'n' and e[3] == now:
714 import time # to avoid useless import
715 time.sleep(delaywrite)
716 break
713
717
714 st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
718 st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
715 st.close()
719 st.close()
General Comments 0
You need to be logged in to leave comments. Login now