cmdutil: use ctx.rev() instead of int(ctx)
Continuing to wean off basectx.__int__.
Differential Revision: https://phab.mercurial-scm.org/D2424
--- 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))