##// END OF EJS Templates
dirstate: make delaywrite sleep until the next multiple of n seconds...
Matt Mackall -
r27399:425dc700 default
parent child Browse files
Show More
@@ -712,7 +712,12 b' class dirstate(object):'
712 for f, e in self._map.iteritems():
712 for f, e in self._map.iteritems():
713 if e[0] == 'n' and e[3] == now:
713 if e[0] == 'n' and e[3] == now:
714 import time # to avoid useless import
714 import time # to avoid useless import
715 time.sleep(delaywrite)
715 # rather than sleep n seconds, sleep until the next
716 # multiple of n seconds
717 clock = time.time()
718 start = int(clock) - (int(clock) % delaywrite)
719 end = start + delaywrite
720 time.sleep(end - clock)
716 break
721 break
717
722
718 st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
723 st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
General Comments 0
You need to be logged in to leave comments. Login now