mercurial/exchange.py
changeset 34221 8e0358024a36
parent 34220 e3cd724231ff
child 34317 e45ec589f962
--- a/mercurial/exchange.py	Sat Sep 16 11:09:08 2017 -0400
+++ b/mercurial/exchange.py	Fri Sep 15 18:38:36 2017 -0400
@@ -1640,7 +1640,8 @@
         part = bundler.newpart('changegroup', data=cgstream)
         if cgversions:
             part.addparam('version', version)
-        part.addparam('nbchanges', str(len(outgoing.missing)), mandatory=False)
+        part.addparam('nbchanges', '%d' % len(outgoing.missing),
+                      mandatory=False)
         if 'treemanifest' in repo.requirements:
             part.addparam('treemanifest', '1')