diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2578,9 +2578,9 @@ repo.ui.status(_('reopening closed branch head %d\n') % r) if repo.ui.debugflag: - repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx.hex())) + repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex())) elif repo.ui.verbose: - repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx)) + repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx)) def postcommitstatus(repo, pats, opts): return repo.status(match=scmutil.match(repo[None], pats, opts))