changeset 2624 | 46e52bbb9b1a |
parent 2598 | b898afee9d0d |
child 2645 | e6a41cbaa260 |
--- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -209,7 +209,7 @@ class ui(object): def expandpath(self, loc, default=None): """Return repository location relative to cwd or from [paths]""" - if "://" in loc or os.path.exists(loc): + if "://" in loc or os.path.isdir(loc): return loc path = self.config("paths", loc)