changeset 2498:1e2ec4fd16df

Fix ui.expandpath problem and broken test introduced by 4a2a4d988ead.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 26 Jun 2006 14:49:18 +0200
parents 976b6b2a1613
children 894435215344
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: