sshrepo: fix addchangegroup's signature
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Mon, 06 Jun 2011 21:02:48 +0200
changeset 14537 3c7907dc95ca
parent 14536 52cbeb5a651b
child 14538 3818c67a501e
child 14625 72613f4a9016
child 14655 4d36013ab330
sshrepo: fix addchangegroup's signature Make it mirror the usage found in localrepo.push. This should only affect pushes to pre-unbundle ssh servers.
mercurial/sshrepo.py
--- a/mercurial/sshrepo.py	Mon Jun 06 15:17:40 2011 -0500
+++ b/mercurial/sshrepo.py	Mon Jun 06 21:02:48 2011 +0200
@@ -186,7 +186,7 @@
     def unlock(self):
         self._call("unlock")
 
-    def addchangegroup(self, cg, source, url):
+    def addchangegroup(self, cg, source, url, lock=None):
         '''Send a changegroup to the remote server.  Return an integer
         similar to unbundle(). DEPRECATED, since it requires locking the
         remote.'''