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

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Fri Nov 24 23:30:33 EST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfa2395db68c6: develwarn: do not emit warning if "config" 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

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



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


More information about the Mercurial-devel mailing list