From patchwork Sun Mar 10 01:50:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6110: py3: use %d instead of %s when formatting an int into a byte string From: phabricator X-Patchwork-Id: 39178 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 10 Mar 2019 01:50:48 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG634b56b54e7c: py3: use %d instead of %s when formatting an int into a byte string (authored by Kwan, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6110?vs=14423&id=14436 REVISION DETAIL https://phab.mercurial-scm.org/D6110 AFFECTED FILES hgext/phabricator.py CHANGE DETAILS To: Kwan, #hg-reviewers Cc: mercurial-devel diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -430,7 +430,7 @@ # existing revision (revid is not None) since that introduces visible # churns (someone edited "Summary" twice) on the web page. if parentrevid and revid is None: - summary = b'Depends on D%s' % parentrevid + summary = b'Depends on D%d' % parentrevid transactions += [{b'type': b'summary', b'value': summary}, {b'type': b'summary', b'value': b' '}] @@ -570,7 +570,7 @@ b'skipped': _(b'skipped'), b'updated': _(b'updated')}[action], b'phabricator.action.%s' % action) - drevdesc = ui.label(b'D%s' % newrevid, b'phabricator.drev') + drevdesc = ui.label(b'D%d' % newrevid, b'phabricator.drev') nodedesc = ui.label(bytes(ctx), b'phabricator.node') desc = ui.label(ctx.description().split(b'\n')[0], b'phabricator.desc') ui.write(_(b'%s - %s - %s: %s\n') % (drevdesc, actiondesc, nodedesc,