diff mercurial/peer.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 32a6a33b9a35
line wrap: on
line diff
--- a/mercurial/peer.py	Fri Jul 13 21:47:06 2012 +0200
+++ b/mercurial/peer.py	Fri Jul 13 21:52:28 2012 +0200
@@ -45,5 +45,8 @@
     def cancopy(self):
         return False
 
+    def canpush(self):
+        return True
+
     def close(self):
         pass