Mercurial > hg
changeset 32965:36e16797df32
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 17 Jun 2017 12:52:02 +0200 |
parents | 6599b7372387 |
children | 61a8321c9962 |
files | mercurial/ui.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: