Patchwork D2446: bundle2: part id is an int, use %d to make it bytes

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2018, 1:12 p.m.
Message ID <e4313043824c0c3a9f5990501a4ee770@localhost.localdomain>
Download mbox | patch
Permalink /patch/28395/
State Not Applicable
Headers show

Comments

phabricator - Feb. 26, 2018, 1:12 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0b697c650b04: bundle2: part id is an int, use %d to make it bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2446?vs=6101&id=6117

REVISION DETAIL
  https://phab.mercurial-scm.org/D2446

AFFECTED FILES
  mercurial/bundle2.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -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')