mercurial/ui.py
changeset 2498 1e2ec4fd16df
parent 2495 4a2a4d988ead
child 2499 894435215344
--- 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: