Weaning off basectx.int.
Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHGa75cab94e936: commands: use ctx.rev() instead of %d % ctx
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
yuja |
hg-reviewers |
Weaning off basectx.int.
Lint Skipped |
Unit Tests Skipped |
elif status == 127: | elif status == 127: | ||||
raise error.Abort(_("failed to execute %s") % command) | raise error.Abort(_("failed to execute %s") % command) | ||||
elif status < 0: | elif status < 0: | ||||
raise error.Abort(_("%s killed") % command) | raise error.Abort(_("%s killed") % command) | ||||
else: | else: | ||||
transition = "bad" | transition = "bad" | ||||
state[transition].append(node) | state[transition].append(node) | ||||
ctx = repo[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) | hbisect.checkstate(state) | ||||
# bisect | # bisect | ||||
nodes, changesets, bgood = hbisect.bisect(repo, state) | nodes, changesets, bgood = hbisect.bisect(repo, state) | ||||
# update to next check | # update to next check | ||||
node = nodes[0] | node = nodes[0] | ||||
mayupdate(repo, node, show_stats=False) | mayupdate(repo, node, show_stats=False) | ||||
finally: | finally: | ||||
state['current'] = [node] | state['current'] = [node] |