mercurial/commands.py
branchstable
changeset 46699 184e0ae0a4b2
parent 46688 7e02e7c721b0
child 46794 e2f7b2695ba1
equal deleted inserted replaced
46698:f64806207752 46699:184e0ae0a4b2
  1081             if p2 != nullid:
  1081             if p2 != nullid:
  1082                 raise error.StateError(_(b'current bisect revision is a merge'))
  1082                 raise error.StateError(_(b'current bisect revision is a merge'))
  1083         if rev:
  1083         if rev:
  1084             if not nodes:
  1084             if not nodes:
  1085                 raise error.Abort(_(b'empty revision set'))
  1085                 raise error.Abort(_(b'empty revision set'))
  1086             node = repo[nodes.last()].node()
  1086             node = repo[nodes[-1]].node()
  1087         with hbisect.restore_state(repo, state, node):
  1087         with hbisect.restore_state(repo, state, node):
  1088             while changesets:
  1088             while changesets:
  1089                 # update state
  1089                 # update state
  1090                 state[b'current'] = [node]
  1090                 state[b'current'] = [node]
  1091                 hbisect.save_state(repo, state)
  1091                 hbisect.save_state(repo, state)