diff -r fa8aaff2001a -r 16f8107a489c hgext/histedit.py --- a/hgext/histedit.py Fri Mar 10 15:43:31 2017 -0800 +++ b/hgext/histedit.py Fri Mar 10 15:43:31 2017 -0800 @@ -1100,7 +1100,7 @@ pos = 0 while state.actions: state.write() - actobj = state.actions.pop(0) + actobj = state.actions[0] pos += 1 ui.progress(_("editing"), pos, actobj.torule(), _('changes'), total) @@ -1109,6 +1109,7 @@ parentctx, replacement_ = actobj.run() state.parentctxnode = parentctx.node() state.replacements.extend(replacement_) + state.actions.pop(0) state.write() ui.progress(_("editing"), None)