Mercurial > hg
changeset 2495:4a2a4d988ead
make ui.expandpath better with default path.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 23 Jun 2006 18:23:32 -0700 |
parents | 73ac95671788 |
children | 6dbb8ae0a0b3 |
files | mercurial/ui.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Fri Jun 23 18:09:44 2006 -0700 +++ b/mercurial/ui.py Fri Jun 23 18:23:32 2006 -0700 @@ -202,7 +202,10 @@ if loc.find("://") != -1 or os.path.exists(loc): return loc - return self.config("paths", loc, default or loc) + path = self.config("paths", loc) + if not path and default is not None: + path = self.config("paths", default) + return path def write(self, *args): if self.header: