dirstate: ignore negative debug.dirstate.delaywrite values - they crashed it
Sleep can only travel forward in time, not back.
--- a/mercurial/dirstate.py Wed Jan 14 17:21:09 2015 -0800
+++ b/mercurial/dirstate.py Wed Jan 14 01:15:26 2015 +0100
@@ -544,7 +544,7 @@
# enough 'delaywrite' prevents 'pack_dirstate' from dropping
# timestamp of each entries in dirstate, because of 'now > mtime'
delaywrite = self._ui.configint('debug', 'dirstate.delaywrite', 0)
- if delaywrite:
+ if delaywrite > 0:
import time # to avoid useless import
time.sleep(delaywrite)