# HG changeset patch # User Pierre-Yves David # Date 2016-05-08 08:43:41 # Node ID ff4cc44364e38bb06bad6b79df7a3e86534b8248 # Parent 33a10e212b80febfacf1baf433f10181e74bb0e4 devel: use the new 'config' argument for the dirstate develwarn diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -694,10 +694,9 @@ class dirstate(object): 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