cmdutil: use ctx.rev() instead of %d % ctx
Weaning off basectx.__int__.
Differential Revision: https://phab.mercurial-scm.org/D2428
--- a/mercurial/cmdutil.py Sat Feb 24 11:07:07 2018 -0800
+++ b/mercurial/cmdutil.py Sat Feb 24 11:13:36 2018 -0800
@@ -2575,7 +2575,7 @@
if not opts.get('close_branch'):
for r in parents:
if r.closesbranch() and r.branch() == branch:
- repo.ui.status(_('reopening closed branch head %d\n') % r)
+ repo.ui.status(_('reopening closed branch head %d\n') % r.rev())
if repo.ui.debugflag:
repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex()))