diff -r 04c319a07c7b -r 2831d918e1b4 mercurial/exchange.py --- a/mercurial/exchange.py Sun Feb 25 23:08:41 2018 -0500 +++ b/mercurial/exchange.py Sun Feb 25 23:09:07 2018 -0500 @@ -1151,8 +1151,8 @@ for newremotehead in outdated: r = pushop.remote.pushkey('phases', newremotehead.hex(), - str(phases.draft), - str(phases.public)) + ('%d' % phases.draft), + ('%d' % phases.public)) if not r: pushop.ui.warn(_('updating %s to public failed!\n') % newremotehead)