cmdutil: use ctx.rev() instead of %d % ctx
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 24 Feb 2018 11:13:36 -0800
changeset 36406 fd2191d870ff
parent 36405 0b57596253b8
child 36407 a75cab94e936
cmdutil: use ctx.rev() instead of %d % ctx Weaning off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2428
mercurial/cmdutil.py
--- 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()))