changeset 36437:a75cab94e936

commands: use ctx.rev() instead of %d % ctx Weaning off basectx.__int__. Differential Revision: https://phab.mercurial-scm.org/D2429
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 24 Feb 2018 11:14:28 -0800
parents fd2191d870ff
children 83bade6206d4
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)