##// END OF EJS Templates
histedit: break _histedit into smaller pieces (add _finishaction)...
Kostia Balytskyi -
r28153:17c474fd default
parent child Browse files
Show More
@@ -1064,6 +1064,7 b' def _histedit(ui, repo, state, *freeargs'
1064 1064 _newaction(ui, repo, state, revs, freeargs, opts)
1065 1065
1066 1066 _continueaction(ui, repo, state)
1067 _finishaction(ui, repo, state)
1067 1068
1068 1069 def _continueaction(ui, repo, state):
1069 1070 """This action runs after either:
@@ -1094,6 +1095,8 b' def _continueaction(ui, repo, state):'
1094 1095 state.write()
1095 1096 ui.progress(_("editing"), None)
1096 1097
1098 def _finishaction(ui, repo, state):
1099 """This action runs when histedit is finishing its session"""
1097 1100 repo.ui.pushbuffer()
1098 1101 hg.update(repo, state.parentctxnode, quietempty=True)
1099 1102 repo.ui.popbuffer()
General Comments 0
You need to be logged in to leave comments. Login now