Patchwork D1102: wireproto: use %d to encode int, not %s

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2017, 9:17 a.m.
Message ID <667ce0670d581def14815f1f15298de7@localhost.localdomain>
Download mbox | patch
Permalink /patch/24970/
State Not Applicable
Headers show

Comments

phabricator - Oct. 16, 2017, 9:17 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG31fdd0509de9: wireproto: use %d to encode int, not %s (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1102?vs=2794&id=2804

REVISION DETAIL
  https://phab.mercurial-scm.org/D1102

AFFECTED FILES
  mercurial/wireproto.py

CHANGE DETAILS




To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel

Patch

diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -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):