Mercurial > hg-stable
changeset 28153:17c474fdb225
histedit: break _histedit into smaller pieces (add _finishaction)
This is a part of a bigger effort to refactor histedit with ultimate
goal of understanding it.
author | Kostia Balytskyi <ikostia@fb.com> |
---|---|
date | Mon, 15 Feb 2016 12:07:33 +0000 |
parents | 5ec1ce8fdf0a |
children | 47f56b6bfed1 |
files | hgext/histedit.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Mon Feb 15 17:24:42 2016 +0000 +++ b/hgext/histedit.py Mon Feb 15 12:07:33 2016 +0000 @@ -1064,6 +1064,7 @@ _newaction(ui, repo, state, revs, freeargs, opts) _continueaction(ui, repo, state) + _finishaction(ui, repo, state) def _continueaction(ui, repo, state): """This action runs after either: @@ -1094,6 +1095,8 @@ state.write() ui.progress(_("editing"), None) +def _finishaction(ui, repo, state): + """This action runs when histedit is finishing its session""" repo.ui.pushbuffer() hg.update(repo, state.parentctxnode, quietempty=True) repo.ui.popbuffer()