[PATCH] sshrepo: fix addchangegroup's signature
Peter Arrenbrecht
peter.arrenbrecht at gmail.com
Mon Jun 6 14:03:43 CDT 2011
# HG changeset patch
# User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
# Date 1307386968 -7200
sshrepo: fix addchangegroup's signature
Make it mirror the usage found in localrepo.push. This should only affect pushes
to pre-unbundle ssh servers.
diff --git a/mercurial/sshrepo.py b/mercurial/sshrepo.py
--- a/mercurial/sshrepo.py
+++ b/mercurial/sshrepo.py
@@ -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.'''
More information about the Mercurial-devel
mailing list