comparison mercurial/sshrepo.py @ 14537:3c7907dc95ca

sshrepo: fix addchangegroup's signature Make it mirror the usage found in localrepo.push. This should only affect pushes to pre-unbundle ssh servers.
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Mon, 06 Jun 2011 21:02:48 +0200
parents 1ffeeb91c55d
children f4522df38c65
comparison
equal deleted inserted replaced
14536:52cbeb5a651b 14537:3c7907dc95ca
184 return remotelock(self) 184 return remotelock(self)
185 185
186 def unlock(self): 186 def unlock(self):
187 self._call("unlock") 187 self._call("unlock")
188 188
189 def addchangegroup(self, cg, source, url): 189 def addchangegroup(self, cg, source, url, lock=None):
190 '''Send a changegroup to the remote server. Return an integer 190 '''Send a changegroup to the remote server. Return an integer
191 similar to unbundle(). DEPRECATED, since it requires locking the 191 similar to unbundle(). DEPRECATED, since it requires locking the
192 remote.''' 192 remote.'''
193 d = self._call("addchangegroup") 193 d = self._call("addchangegroup")
194 if d: 194 if d: