# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1506899886 -19800 # Node ID 1d804c22c67128dd1b625dd681925d50f1a6fc09 # Parent 91250ff7d48ad28763fc4ad2cc5bc6c06f691426 py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D973 diff -r 91250ff7d48a -r 1d804c22c671 mercurial/filemerge.py --- a/mercurial/filemerge.py Mon Oct 02 04:46:17 2017 +0530 +++ b/mercurial/filemerge.py Mon Oct 02 04:48:06 2017 +0530 @@ -515,7 +515,7 @@ (tool, fcd.path())) repo.ui.debug('launching merge tool: %s\n' % cmd) r = ui.system(cmd, cwd=repo.root, environ=env, blockedtag='mergetool') - repo.ui.debug('merge tool returned: %s\n' % r) + repo.ui.debug('merge tool returned: %d\n' % r) return True, r, False finally: util.unlink(b) diff -r 91250ff7d48a -r 1d804c22c671 mercurial/mdiff.py --- a/mercurial/mdiff.py Mon Oct 02 04:46:17 2017 +0530 +++ b/mercurial/mdiff.py Mon Oct 02 04:48:06 2017 +0530 @@ -457,7 +457,7 @@ # TODO: deltas ret = [] ret.append('GIT binary patch\n') - ret.append('literal %s\n' % len(tn)) + ret.append('literal %d\n' % len(tn)) for l in chunk(zlib.compress(tn)): ret.append(fmtline(l)) ret.append('\n')