changeset 36428:0b697c650b04

bundle2: part id is an int, use %d to make it bytes Differential Revision: https://phab.mercurial-scm.org/D2446
author Augie Fackler <augie@google.com>
date Mon, 26 Feb 2018 00:28:10 -0500
parents 247b473f408e
children f8ea6988a5fb
files mercurial/bundle2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')