mercurial/bundlerepo.py
changeset 2673 109a22f5434a
parent 2273 f116ddea537f
child 2740 386f04d6ecb3
--- a/mercurial/bundlerepo.py	Tue Jul 25 21:22:56 2006 +0200
+++ b/mercurial/bundlerepo.py	Tue Jul 25 13:50:32 2006 -0700
@@ -159,6 +159,10 @@
 class bundlerepository(localrepo.localrepository):
     def __init__(self, ui, path, bundlename):
         localrepo.localrepository.__init__(self, ui, path)
+
+        self._url = 'bundle:' + bundlename
+        if path: self._url += '+' + path
+
         self.tempfile = None
         self.bundlefile = open(bundlename, "rb")
         header = self.bundlefile.read(6)
@@ -208,6 +212,9 @@
             for c in changegroup.chunkiter(self.bundlefile):
                 pass
 
+    def url(self):
+        return self._url
+
     def dev(self):
         return -1