# HG changeset patch # User Pierre-Yves David # Date 1462697021 -7200 # Node ID 33a10e212b80febfacf1baf433f10181e74bb0e4 # Parent 3f33831a9202828451bd60e996ae338a533e9e17 devel: use the new 'config' argument of the develwarn in deprecwarn Controling all deprecation warnings with the same config seems sensible. This mirror a fix (about missing gating) submitted for stable but with the new API. diff -r 3f33831a9202 -r 33a10e212b80 mercurial/ui.py --- a/mercurial/ui.py Sun May 08 10:43:41 2016 +0200 +++ b/mercurial/ui.py Sun May 08 10:43:41 2016 +0200 @@ -1169,7 +1169,7 @@ return msg += ("\n(compatibility will be dropped after Mercurial-%s," " update your code.)") % version - self.develwarn(msg, stacklevel=2) + self.develwarn(msg, stacklevel=2, config='deprec-warn') class paths(dict): """Represents a collection of paths and their configs.