config: use the new '_unset' value for 'configint'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 17 Jun 2017 12:53:40 +0200
changeset 32961 24111157f967
parent 32960 6ff6eb33f353
child 32962 0bf986cfa82b
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.
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'