# HG changeset patch # User Augie Fackler # Date 2017-10-15 04:40:07 # Node ID 31fdd0509de90dce3e72ca52b6b4007e93c1506e # Parent 6be264009841be7fc33e71d2f9eda038ae02fa6e wireproto: use %d to encode int, not %s Differential Revision: https://phab.mercurial-scm.org/D1102 diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -907,7 +907,7 @@ def lookup(repo, proto, key): except Exception as inst: r = str(inst) success = 0 - return "%s %s\n" % (success, r) + return "%d %s\n" % (success, r) @wireprotocommand('known', 'nodes *') def known(repo, proto, nodes, others):