equal
deleted
inserted
replaced
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) |