cmdutil: use ctx.rev() instead of int(ctx)
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 24 Feb 2018 10:51:13 -0800
changeset 36402 ef6ae3f64c23
parent 36401 d65642840c6f
child 36403 10de411d7207
cmdutil: use ctx.rev() instead of int(ctx) Continuing to wean off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2424
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))