diff mercurial/bundlerepo.py @ 11154:17031fea4e95 stable

expand paths to local repository or bundle in appropriate classes This avoids problem with unexpanded paths when it's not possible to expand it at higher level (for example, if file:~/path/ is supplied as path in schemes).
author Alexander Solovyov <piranha@piranha.org.ua>
date Mon, 07 Dec 2009 12:31:45 +0200
parents 08a0f04b56bd
children bcc7139521b7
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Tue May 11 20:13:52 2010 +0200
+++ b/mercurial/bundlerepo.py	Mon Dec 07 12:31:45 2009 +0200
@@ -166,7 +166,7 @@
             localrepo.localrepository.__init__(self, ui, self._tempparent)
 
         if path:
-            self._url = 'bundle:' + path + '+' + bundlename
+            self._url = 'bundle:' + util.expandpath(path) + '+' + bundlename
         else:
             self._url = 'bundle:' + bundlename