diff mercurial/statichttprepo.py @ 17193:1d710fe5ee0e

peer: introduce canpush and improve error message
author Sune Foldager <cryo@cyanite.org>
date Fri, 13 Jul 2012 21:52:28 +0200
parents 1ac628cd7113
children f65c6a5f256c
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Fri Jul 13 21:47:06 2012 +0200
+++ b/mercurial/statichttprepo.py	Fri Jul 13 21:52:28 2012 +0200
@@ -79,6 +79,8 @@
 class statichttppeer(localrepo.localpeer):
     def local(self):
         return None
+    def canpush(self):
+        return False
 
 class statichttprepository(localrepo.localrepository):
     def __init__(self, ui, path):