# HG changeset patch # User Pierre-Yves David # Date 2017-06-17 10:53:40 # 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 --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -574,7 +574,7 @@ class ui(object): 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'