comparison mercurial/commands.py @ 36407: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 eb73f8a6177e
children 07e207e88b42
comparison
equal deleted inserted replaced
36406:fd2191d870ff 36407:a75cab94e936
858 raise error.Abort(_("%s killed") % command) 858 raise error.Abort(_("%s killed") % command)
859 else: 859 else:
860 transition = "bad" 860 transition = "bad"
861 state[transition].append(node) 861 state[transition].append(node)
862 ctx = repo[node] 862 ctx = repo[node]
863 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition)) 863 ui.status(_('changeset %d:%s: %s\n') % (ctx.rev(), ctx,
864 transition))
864 hbisect.checkstate(state) 865 hbisect.checkstate(state)
865 # bisect 866 # bisect
866 nodes, changesets, bgood = hbisect.bisect(repo, state) 867 nodes, changesets, bgood = hbisect.bisect(repo, state)
867 # update to next check 868 # update to next check
868 node = nodes[0] 869 node = nodes[0]