Fix ui.expandpath problem and broken test introduced by 4a2a4d988ead.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 26 Jun 2006 14:49:18 +0200
changeset 2498 1e2ec4fd16df
parent 2497 976b6b2a1613
child 2499 894435215344
Fix ui.expandpath problem and broken test introduced by 4a2a4d988ead.
mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -205,7 +205,7 @@ class ui(object):
         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: