Mercurial > public > mercurial-scm > hg-stable
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 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)