Mercurial > hg
comparison mercurial/ui.py @ 1892:622ee75cb4c9
Directory names take precedence over symbolic names consistently.
Previously this was only done for clone.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 12 Mar 2006 18:05:13 +0100 |
parents | c0320567931f |
children | 6569651a4f1e |
comparison
equal
deleted
inserted
replaced
1891:e5c8e38b788f | 1892:622ee75cb4c9 |
---|---|
152 if f >= 0: | 152 if f >= 0: |
153 user = user[f+1:] | 153 user = user[f+1:] |
154 return user | 154 return user |
155 | 155 |
156 def expandpath(self, loc, root=""): | 156 def expandpath(self, loc, root=""): |
157 """Return repository location relative to cwd or from [paths]""" | |
158 if os.path.exists(loc): | |
159 return loc | |
160 | |
157 paths = {} | 161 paths = {} |
158 for name, path in self.configitems("paths"): | 162 for name, path in self.configitems("paths"): |
159 m = path.find("://") | 163 m = path.find("://") |
160 if m == -1: | 164 if m == -1: |
161 path = os.path.join(root, path) | 165 path = os.path.join(root, path) |