changeset 29097:ff4cc44364e3

devel: use the new 'config' argument for the dirstate develwarn
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 08 May 2016 10:43:41 +0200
parents 33a10e212b80
children 2822e9a5263b
files mercurial/dirstate.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun May 08 10:43:41 2016 +0200
+++ b/mercurial/dirstate.py	Sun May 08 10:43:41 2016 +0200
@@ -694,10 +694,9 @@
 
         filename = self._filename
         if tr is False: # not explicitly specified
-            if (self._ui.configbool('devel', 'all-warnings')
-                or self._ui.configbool('devel', 'check-dirstate-write')):
-                self._ui.develwarn('use dirstate.write with '
-                                   'repo.currenttransaction()')
+            self._ui.develwarn('use dirstate.write with '
+                               'repo.currenttransaction()',
+                               config='check-dirstate-write')
 
             if self._opener.lexists(self._pendingfilename):
                 # if pending file already exists, in-memory changes