Mercurial > hg-stable
changeset 40510:24cb8a6d4c20
py3: do not stringify integers in revlog stats by '%s'
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 24 Oct 2018 21:29:04 +0900 |
parents | 88702fd208ce |
children | c2a0bc6412db |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed Oct 24 21:28:03 2018 +0900 +++ b/mercurial/debugcommands.py Wed Oct 24 21:29:04 2018 +0900 @@ -1172,7 +1172,7 @@ if not util.safehasattr(index, 'stats'): raise error.Abort(_('debugindexstats only works with native code')) for k, v in sorted(index.stats().items()): - ui.write('%s: %s\n' % (k, v)) + ui.write('%s: %d\n' % (k, v)) @command('debuginstall', [] + cmdutil.formatteropts, '', norepo=True) def debuginstall(ui, **opts):