# HG changeset patch # User Gregory Szorc # Date 1519498273 28800 # Node ID ef6ae3f64c230203b863a677f0fcaf936cae2fe5 # Parent d65642840c6fe812a07f191974888fe27b681342 cmdutil: use ctx.rev() instead of int(ctx) Continuing to wean off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2424 diff -r d65642840c6f -r ef6ae3f64c23 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sat Feb 24 10:48:24 2018 -0800 +++ b/mercurial/cmdutil.py Sat Feb 24 10:51:13 2018 -0800 @@ -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))