author | Simon Heimberg <simohe@besonet.ch> |
Sat, 23 Jul 2011 06:08:52 +0200 | |
changeset 14923 | 351624f8f523 |
parent 14922 | 1bc970a77977 |
child 14924 | 545e00279670 |
mercurial/ui.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/ui.py Sat Jul 23 06:08:49 2011 +0200 +++ b/mercurial/ui.py Sat Jul 23 06:08:52 2011 +0200 @@ -166,6 +166,8 @@ def configpath(self, section, name, default=None, untrusted=False): 'get a path config item, expanded relative to config file' v = self.config(section, name, default, untrusted) + if v is None: + return None if not os.path.isabs(v) or "://" not in v: src = self.configsource(section, name, untrusted) if ':' in src: