diff -r 52cbeb5a651b -r 3c7907dc95ca 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.'''