diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -94,9 +94,9 @@ def _gen_sendfile(connection): # if auth required, some data sent twice, so rewind here data.seek(0) for chunk in util.filechunkiter(data): - connection.sendall(self, chunk) + connection.send(self, chunk) else: - connection.sendall(self, data) + connection.send(self, data) return _sendfile class httpconnection(keepalive.HTTPConnection):