mercurial/ui.py
changeset 1440 bf109779f48b
parent 1402 9d2c2e6b32b5
child 1473 7d66ce9895fa
--- a/mercurial/ui.py	Mon Oct 24 16:59:31 2005 -0700
+++ b/mercurial/ui.py	Mon Oct 24 17:41:45 2005 -0700
@@ -89,9 +89,12 @@
                 user = user[f+1:]
         return user
 
-    def expandpath(self, loc):
+    def expandpath(self, loc, root=""):
         paths = {}
         for name, path in self.configitems("paths"):
+            m = path.find("://")
+            if m == -1:
+                    path = os.path.join(root, path)
             paths[name] = path
 
         return paths.get(loc, loc)