# HG changeset patch # User Pierre-Yves David # Date 1497696820 -7200 # Node ID 24111157f9670dc6fd6f46f2caac074434116ed0 # Parent 6ff6eb33f3537af9ce1fcf0444dc1329986db5db config: use the new '_unset' value for 'configint' This should let 'configint' delegates all special processing of the default config value to the main 'config' method. diff -r 6ff6eb33f353 -r 24111157f967 mercurial/ui.py --- a/mercurial/ui.py Sat Jun 17 12:52:31 2017 +0200 +++ b/mercurial/ui.py Sat Jun 17 12:53:40 2017 +0200 @@ -574,7 +574,7 @@ raise error.ConfigError(_("%s.%s is not a valid %s ('%s')") % (section, name, desc, v)) - def configint(self, section, name, default=None, untrusted=False): + def configint(self, section, name, default=_unset, untrusted=False): """parse a configuration element as an integer >>> u = ui(); s = 'foo'