# HG changeset patch # User Thomas Arendsen Hein # Date 1151326158 -7200 # Node ID 1e2ec4fd16df58d2d7836fc3df0e51acacd9aab3 # Parent 976b6b2a1613432ebe7298a6fabd3c9354625334 Fix ui.expandpath problem and broken test introduced by 4a2a4d988ead. diff -r 976b6b2a1613 -r 1e2ec4fd16df mercurial/ui.py --- a/mercurial/ui.py Fri Jun 23 19:20:22 2006 -0700 +++ b/mercurial/ui.py Mon Jun 26 14:49:18 2006 +0200 @@ -205,7 +205,7 @@ path = self.config("paths", loc) if not path and default is not None: path = self.config("paths", default) - return path + return path or loc def write(self, *args): if self.header: