diff -r 81349f4b47f4 -r 9dd442148301 mercurial/dirstate.py --- 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)