# HG changeset patch # User Matt Mackall # Date 1174002953 18000 # Node ID 2216535f07d752e93f5626a9d9df1eae7934efef # Parent 90bb1ab53a853b4f52940186dc6010fdf2290903# Parent ea976f5f3fa38eeda7b2f399ae35e410b6599c64 Merge with crew diff -r 90bb1ab53a85 -r 2216535f07d7 mercurial/ui.py --- a/mercurial/ui.py Thu Mar 15 18:38:46 2007 -0500 +++ b/mercurial/ui.py Thu Mar 15 18:55:53 2007 -0500 @@ -362,7 +362,7 @@ def expandpath(self, loc, default=None): """Return repository location relative to cwd or from [paths]""" - if "://" in loc or os.path.isdir(loc): + if "://" in loc or os.path.isdir(os.path.join(loc, '.hg')): return loc path = self.config("paths", loc)