Mercurial > hg
comparison mercurial/debugcommands.py @ 40456: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 | 4f37af86d5d5 |
children | a59a74721c76 |
comparison
equal
deleted
inserted
replaced
40455:88702fd208ce | 40456:24cb8a6d4c20 |
---|---|
1170 repo.changelog.shortest(nullid, 1) | 1170 repo.changelog.shortest(nullid, 1) |
1171 index = repo.changelog.index | 1171 index = repo.changelog.index |
1172 if not util.safehasattr(index, 'stats'): | 1172 if not util.safehasattr(index, 'stats'): |
1173 raise error.Abort(_('debugindexstats only works with native code')) | 1173 raise error.Abort(_('debugindexstats only works with native code')) |
1174 for k, v in sorted(index.stats().items()): | 1174 for k, v in sorted(index.stats().items()): |
1175 ui.write('%s: %s\n' % (k, v)) | 1175 ui.write('%s: %d\n' % (k, v)) |
1176 | 1176 |
1177 @command('debuginstall', [] + cmdutil.formatteropts, '', norepo=True) | 1177 @command('debuginstall', [] + cmdutil.formatteropts, '', norepo=True) |
1178 def debuginstall(ui, **opts): | 1178 def debuginstall(ui, **opts): |
1179 '''test Mercurial installation | 1179 '''test Mercurial installation |
1180 | 1180 |