config: use the new '_unset' value for 'configsuboptions'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 17 Jun 2017 12:51:37 +0200
changeset 32967 cd2fd1765654
parent 32966 61a8321c9962
child 32968 4107eb8a5648
config: use the new '_unset' value for 'configsuboptions' This should let configsuboptions delegate all special processing of the default config value to the main 'config' method.
mercurial/ui.py
--- a/mercurial/ui.py	Sat Jun 17 18:28:20 2017 +0200
+++ b/mercurial/ui.py	Sat Jun 17 12:51:37 2017 +0200
@@ -460,7 +460,7 @@
                                "%s.%s = %s\n" % (section, n, uvalue))
         return value
 
-    def configsuboptions(self, section, name, default=None, untrusted=False):
+    def configsuboptions(self, section, name, default=_unset, untrusted=False):
         """Get a config option and all sub-options.
 
         Some config options have sub-options that are declared with the