##// END OF EJS Templates
py3: use %d instead of %s when formatting an int into a byte string...
Ian Moody -
r42070:634b56b5 default
parent child Browse files
Show More
@@ -430,7 +430,7 b' def createdifferentialrevision(ctx, revi'
430 # existing revision (revid is not None) since that introduces visible
430 # existing revision (revid is not None) since that introduces visible
431 # churns (someone edited "Summary" twice) on the web page.
431 # churns (someone edited "Summary" twice) on the web page.
432 if parentrevid and revid is None:
432 if parentrevid and revid is None:
433 summary = b'Depends on D%s' % parentrevid
433 summary = b'Depends on D%d' % parentrevid
434 transactions += [{b'type': b'summary', b'value': summary},
434 transactions += [{b'type': b'summary', b'value': summary},
435 {b'type': b'summary', b'value': b' '}]
435 {b'type': b'summary', b'value': b' '}]
436
436
@@ -570,7 +570,7 b' def phabsend(ui, repo, *revs, **opts):'
570 b'skipped': _(b'skipped'),
570 b'skipped': _(b'skipped'),
571 b'updated': _(b'updated')}[action],
571 b'updated': _(b'updated')}[action],
572 b'phabricator.action.%s' % action)
572 b'phabricator.action.%s' % action)
573 drevdesc = ui.label(b'D%s' % newrevid, b'phabricator.drev')
573 drevdesc = ui.label(b'D%d' % newrevid, b'phabricator.drev')
574 nodedesc = ui.label(bytes(ctx), b'phabricator.node')
574 nodedesc = ui.label(bytes(ctx), b'phabricator.node')
575 desc = ui.label(ctx.description().split(b'\n')[0], b'phabricator.desc')
575 desc = ui.label(ctx.description().split(b'\n')[0], b'phabricator.desc')
576 ui.write(_(b'%s - %s - %s: %s\n') % (drevdesc, actiondesc, nodedesc,
576 ui.write(_(b'%s - %s - %s: %s\n') % (drevdesc, actiondesc, nodedesc,
General Comments 0
You need to be logged in to leave comments. Login now