diff -r e0a0af140f2e -r 17031fea4e95 mercurial/hg.py --- a/mercurial/hg.py Tue May 11 20:13:52 2010 +0200 +++ b/mercurial/hg.py Mon Dec 07 12:31:45 2009 +0200 @@ -15,8 +15,8 @@ import errno, os, shutil def _local(path): - return (os.path.isfile(util.drop_scheme('file', path)) and - bundlerepo or localrepo) + path = util.expandpath(util.drop_scheme('file', path)) + return (os.path.isfile(path) and bundlerepo or localrepo) def addbranchrevs(lrepo, repo, branches, revs): if not branches: