# HG changeset patch # User Boris Feld # Date 2017-06-30 01:37:05 # Node ID cbda631c1dde2b701e4c8d0a878aedbaa6ac453c # Parent 99c3dee3f6cea9f33606d853ed809b8e2cc23de4 configitems: register the 'debug.dirstate.delaywrite' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -107,6 +107,9 @@ coreconfigitem('commands', 'status.verbo coreconfigitem('commands', 'update.requiredest', default=False, ) +coreconfigitem('debug', 'dirstate.delaywrite', + default=0, +) coreconfigitem('devel', 'all-warnings', default=False, ) diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -766,7 +766,7 @@ class dirstate(object): # 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) + delaywrite = self._ui.configint('debug', 'dirstate.delaywrite') if delaywrite > 0: # do we have any files to delay for? for f, e in self._map.iteritems():