# HG changeset patch # User Pierre-Yves David # Date 2017-06-17 10:52:02 # Node ID 36e16797df32a1db2fbe58503b5a08edd1020854 # Parent 6599b7372387489f06411972b8eb5fa9efc8c129 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. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -493,7 +493,7 @@ class ui(object): 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: