Patchwork D1494: develwarn: do not emit warning if "config" is unspecified

login
register
mail settings
Submitter phabricator
Date Nov. 25, 2017, 4:30 a.m.
Message ID <1d42e72c6d4be3dd41207eb92a9a5a6f@localhost.localdomain>
Download mbox | patch
Permalink /patch/25741/
State Not Applicable
Headers show

Comments

phabricator - Nov. 25, 2017, 4:30 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfa2395db68c6: develwarn: do not emit warning if &quot;config&quot; is unspecified (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1494?vs=3798&id=3855

REVISION DETAIL
  https://phab.mercurial-scm.org/D1494

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: spectral, yuja, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1603,7 +1603,7 @@ 
         stack.
         """
         if not self.configbool('devel', 'all-warnings'):
-            if config is not None and not self.configbool('devel', config):
+            if config is None or not self.configbool('devel', config):
                 return
         msg = 'devel-warn: ' + msg
         stacklevel += 1 # get in develwarn