wireproto: use %d to encode int, not %s
authorAugie Fackler <augie@google.com>
Sun, 15 Oct 2017 00:40:07 -0400
changeset 34731 31fdd0509de9
parent 34730 6be264009841
child 34732 67e9678efd98
wireproto: use %d to encode int, not %s Differential Revision: https://phab.mercurial-scm.org/D1102
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Sun Oct 15 00:06:06 2017 -0400
+++ b/mercurial/wireproto.py	Sun Oct 15 00:40:07 2017 -0400
@@ -907,7 +907,7 @@
     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):