comparison mercurial/wireproto.py @ 34731:31fdd0509de9

wireproto: use %d to encode int, not %s Differential Revision: https://phab.mercurial-scm.org/D1102
author Augie Fackler <augie@google.com>
date Sun, 15 Oct 2017 00:40:07 -0400
parents 6be264009841
children b880cc11da5d
comparison
equal deleted inserted replaced
34730:6be264009841 34731:31fdd0509de9
905 r = c.hex() 905 r = c.hex()
906 success = 1 906 success = 1
907 except Exception as inst: 907 except Exception as inst:
908 r = str(inst) 908 r = str(inst)
909 success = 0 909 success = 0
910 return "%s %s\n" % (success, r) 910 return "%d %s\n" % (success, r)
911 911
912 @wireprotocommand('known', 'nodes *') 912 @wireprotocommand('known', 'nodes *')
913 def known(repo, proto, nodes, others): 913 def known(repo, proto, nodes, others):
914 return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes))) 914 return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes)))
915 915