mercurial/hg.py
branchstable
changeset 11154 17031fea4e95
parent 10728 4a70178f9bde
child 11156 b203a95fe68b
child 11255 e4dbaa40096d
--- 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: