diff mercurial/cmdutil.py @ 36406:fd2191d870ff

cmdutil: use ctx.rev() instead of %d % ctx Weaning off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2428
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 24 Feb 2018 11:13:36 -0800
parents ef6ae3f64c23
children 165cf86365ff
line wrap: on
line diff
--- 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()))