mercurial/bundlerepo.py
changeset 17193 1d710fe5ee0e
parent 17191 5884812686f7
child 17913 03e552aaae67
child 18138 8ab0640c3090
--- a/mercurial/bundlerepo.py	Fri Jul 13 21:47:06 2012 +0200
+++ b/mercurial/bundlerepo.py	Fri Jul 13 21:52:28 2012 +0200
@@ -167,6 +167,10 @@
     def _file(self, f):
         self._repo.file(f)
 
+class bundlepeer(localrepo.localpeer):
+    def canpush(self):
+        return False
+
 class bundlerepository(localrepo.localrepository):
     def __init__(self, ui, path, bundlename):
         self._tempparent = None
@@ -272,6 +276,9 @@
     def cancopy(self):
         return False
 
+    def peer(self):
+        return bundlepeer(self)
+
     def getcwd(self):
         return os.getcwd() # always outside the repo