# HG changeset patch # User Thomas Arendsen Hein # Date 2006-03-12 19:34:09 # Node ID acce3f7e1779b9d79017e2c5a1eac224d327a0ed # Parent 4c53aaf2d153e0cac252d313df5a6f5d5d1228cd Don't expand empty [paths] so later interpolation can do the right thing. Example: [paths] default = default-push = %(default)s diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -60,7 +60,7 @@ class ui(object): if root is None: root = os.path.expanduser('~') for name, path in self.configitems("paths"): - if path.find("://") == -1 and not os.path.isabs(path): + if path and path.find("://") == -1 and not os.path.isabs(path): self.cdata.set("paths", name, os.path.join(root, path)) def setconfig(self, section, name, val):