diff mercurial/ui.py @ 1440:bf109779f48b

Fix relative pull in a subdir
author tonfa@arakou.lan
date Mon, 24 Oct 2005 17:41:45 -0700
parents 9d2c2e6b32b5
children 7d66ce9895fa
line wrap: on
line diff
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -89,9 +89,12 @@ class ui:
                 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)