# HG changeset patch # User Augie Fackler # Date 2018-02-26 05:50:57 # Node ID ec43960b03e8c8c8c72cc2c73b2b3ca00d6743d5 # Parent efebfa9b4cab1bf5c0e8eeb31c636d746712fa84 wireproto: use %d to encode an int, not a %s Differential Revision: https://phab.mercurial-scm.org/D2449 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):