diff mercurial/hg.py @ 11156:b203a95fe68b

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 11 May 2010 17:03:44 -0500
parents 71cf11f03b3d 17031fea4e95
children 5593ff6d1e5a
line wrap: on
line diff
--- 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: