diff -r 245a67fe2574 -r b203a95fe68b mercurial/hg.py --- a/mercurial/hg.py Tue May 11 16:28:09 2010 -0500 +++ b/mercurial/hg.py Tue May 11 17:03:44 2010 -0500 @@ -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: