commands: use ctx.rev() instead of %d % ctx
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 24 Feb 2018 11:14:28 -0800
changeset 36407 a75cab94e936
parent 36406 fd2191d870ff
child 36408 83bade6206d4
commands: use ctx.rev() instead of %d % ctx Weaning off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2429
mercurial/commands.py
--- a/mercurial/commands.py	Sat Feb 24 11:13:36 2018 -0800
+++ b/mercurial/commands.py	Sat Feb 24 11:14:28 2018 -0800
@@ -860,7 +860,8 @@
                     transition = "bad"
                 state[transition].append(node)
                 ctx = repo[node]
-                ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
+                ui.status(_('changeset %d:%s: %s\n') % (ctx.rev(), ctx,
+                                                        transition))
                 hbisect.checkstate(state)
                 # bisect
                 nodes, changesets, bgood = hbisect.bisect(repo, state)