comparison hgext/fix.py @ 43501:b2f95f9d3588

fix: replace str() by b'%d' for formatting integer Differential Revision: https://phab.mercurial-scm.org/D7303
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 07 Nov 2019 03:46:48 -0800
parents 579672b347d2
children dda49ec2b54a
comparison
equal deleted inserted replaced
43500:6337b10c46bc 43501:b2f95f9d3588
679 if line: 679 if line:
680 ui.warn(b'[') 680 ui.warn(b'[')
681 if rev is None: 681 if rev is None:
682 ui.warn(_(b'wdir'), label=b'evolve.rev') 682 ui.warn(_(b'wdir'), label=b'evolve.rev')
683 else: 683 else:
684 ui.warn((str(rev)), label=b'evolve.rev') 684 ui.warn(b'%d' % rev, label=b'evolve.rev')
685 ui.warn(b'] %s: %s\n' % (fixername, line)) 685 ui.warn(b'] %s: %s\n' % (fixername, line))
686 686
687 687
688 def writeworkingdir(repo, ctx, filedata, replacements): 688 def writeworkingdir(repo, ctx, filedata, replacements):
689 """Write new content to the working copy and check out the new p1 if any 689 """Write new content to the working copy and check out the new p1 if any