diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -955,7 +955,7 @@ def pushkey(repo, proto, namespace, key, encoding.tolocal(old), new) or False output = output.getvalue() if output else '' - return bytesresponse('%s\n%s' % (int(r), output)) + return bytesresponse('%d\n%s' % (int(r), output)) @wireprotocommand('stream_out') def stream(repo, proto):