changeset 1892 | 622ee75cb4c9 |
parent 1882 | c0320567931f |
child 1893 | 6569651a4f1e |
--- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -154,6 +154,10 @@ class ui(object): return user def expandpath(self, loc, root=""): + """Return repository location relative to cwd or from [paths]""" + if os.path.exists(loc): + return loc + paths = {} for name, path in self.configitems("paths"): m = path.find("://")