hgext/histedit.py
changeset 31519 16f8107a489c
parent 31518 fa8aaff2001a
child 31520 68474b72ea63
equal deleted inserted replaced
31518:fa8aaff2001a 31519:16f8107a489c
  1098 
  1098 
  1099     total = len(state.actions)
  1099     total = len(state.actions)
  1100     pos = 0
  1100     pos = 0
  1101     while state.actions:
  1101     while state.actions:
  1102         state.write()
  1102         state.write()
  1103         actobj = state.actions.pop(0)
  1103         actobj = state.actions[0]
  1104         pos += 1
  1104         pos += 1
  1105         ui.progress(_("editing"), pos, actobj.torule(),
  1105         ui.progress(_("editing"), pos, actobj.torule(),
  1106                     _('changes'), total)
  1106                     _('changes'), total)
  1107         ui.debug('histedit: processing %s %s\n' % (actobj.verb,\
  1107         ui.debug('histedit: processing %s %s\n' % (actobj.verb,\
  1108                                                    actobj.torule()))
  1108                                                    actobj.torule()))
  1109         parentctx, replacement_ = actobj.run()
  1109         parentctx, replacement_ = actobj.run()
  1110         state.parentctxnode = parentctx.node()
  1110         state.parentctxnode = parentctx.node()
  1111         state.replacements.extend(replacement_)
  1111         state.replacements.extend(replacement_)
       
  1112         state.actions.pop(0)
  1112     state.write()
  1113     state.write()
  1113     ui.progress(_("editing"), None)
  1114     ui.progress(_("editing"), None)
  1114 
  1115 
  1115 def _finishhistedit(ui, repo, state):
  1116 def _finishhistedit(ui, repo, state):
  1116     """This action runs when histedit is finishing its session"""
  1117     """This action runs when histedit is finishing its session"""