config: use the new '_unset' value for 'configpath'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 17 Jun 2017 12:52:02 +0200
changeset 32965 36e16797df32
parent 32964 6599b7372387
child 32966 61a8321c9962
config: use the new '_unset' value for 'configpath' This should let 'configpath' delegate all special processing of the default config value to the main 'config' method.
mercurial/ui.py
--- a/mercurial/ui.py	Sat Jun 17 12:54:45 2017 +0200
+++ b/mercurial/ui.py	Sat Jun 17 12:52:02 2017 +0200
@@ -493,7 +493,7 @@
 
         return main, sub
 
-    def configpath(self, section, name, default=None, untrusted=False):
+    def configpath(self, section, name, default=_unset, untrusted=False):
         'get a path config item, expanded relative to repo root or config file'
         v = self.config(section, name, default, untrusted)
         if v is None: