diff mercurial/bundlerepo.py @ 6129:3d666e8e6398

bundlerepo: fix inconsistency of parsed and internal name (issue #821)
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Sun, 10 Feb 2008 08:53:39 +0100
parents da72b4d24797
children f89fd07fc51d
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Sun Feb 10 08:52:50 2008 +0100
+++ b/mercurial/bundlerepo.py	Sun Feb 10 08:53:39 2008 +0100
@@ -154,8 +154,10 @@
     def __init__(self, ui, path, bundlename):
         localrepo.localrepository.__init__(self, ui, path)
 
-        self._url = 'bundle:' + bundlename
-        if path: self._url += '+' + path
+        if path:
+            self._url = 'bundle:' + path + '+' + bundlename
+        else:
+            self._url = 'bundle:' + bundlename
 
         self.tempfile = None
         self.bundlefile = open(bundlename, "rb")