Patchwork [5,of,5] configitems: register the 'debug.dirstate.delaywrite' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 4, 2017, 2:33 p.m.
Message ID <4e0e313b1e48190dc6d4.1507127624@FB>
Download mbox | patch
Permalink /patch/24488/
State Accepted
Headers show

Comments

Boris Feld - Oct. 4, 2017, 2:33 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786625 -7200
#      Fri Jun 30 03:37:05 2017 +0200
# Node ID 4e0e313b1e48190dc6d466e62f41032318f7d8ce
# Parent  29c443ad962b078b1814489d41d94dd77d161568
# EXP-Topic config.register.core
configitems: register the 'debug.dirstate.delaywrite' config

Patch

diff -r 29c443ad962b -r 4e0e313b1e48 mercurial/configitems.py
--- a/mercurial/configitems.py	Fri Jun 30 03:43:13 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:37:05 2017 +0200
@@ -107,6 +107,9 @@ 
 coreconfigitem('commands', 'update.requiredest',
     default=False,
 )
+coreconfigitem('debug', 'dirstate.delaywrite',
+    default=0,
+)
 coreconfigitem('devel', 'all-warnings',
     default=False,
 )
diff -r 29c443ad962b -r 4e0e313b1e48 mercurial/dirstate.py
--- a/mercurial/dirstate.py	Fri Jun 30 03:43:13 2017 +0200
+++ b/mercurial/dirstate.py	Fri Jun 30 03:37:05 2017 +0200
@@ -766,7 +766,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)
+        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():