bundle2: part id is an int, use %d to make it bytes
authorAugie Fackler <augie@google.com>
Mon, 26 Feb 2018 00:28:10 -0500
changeset 36428 0b697c650b04
parent 36427 247b473f408e
child 36429 f8ea6988a5fb
bundle2: part id is an int, use %d to make it bytes Differential Revision: https://phab.mercurial-scm.org/D2446
mercurial/bundle2.py
--- 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')