mercurial/hg.py
changeset 11156 b203a95fe68b
parent 10731 71cf11f03b3d
parent 11154 17031fea4e95
child 11233 5593ff6d1e5a
--- 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: