bundle2: part id is an int, use %d to make it bytes
Differential Revision: https://phab.mercurial-scm.org/D2446
--- a/mercurial/bundle2.py Mon Feb 26 00:27:47 2018 -0500
+++ b/mercurial/bundle2.py Mon Feb 26 00:28:10 2018 -0500
@@ -2002,7 +2002,7 @@
for key in ('namespace', 'key', 'new', 'old', 'ret'):
if key in inpart.params:
kwargs[key] = inpart.params[key]
- raise error.PushkeyFailed(partid=str(inpart.id),
+ raise error.PushkeyFailed(partid='%d' % inpart.id,
**pycompat.strkwargs(kwargs))
@parthandler('bookmarks')