Mercurial > hg
diff hgext/histedit.py @ 42533:0231032729c4
statecheck: added support for cmdutil.afterresolvedstates
This removes `afterresolvedstates` from `cmdutil` and adds
support for it in `_statecheck` class.
A new flag `continueflag` is added to the class to check whether an
operation supports `--continue` option or not.
Tests remain unchanged.
Differential Revision: https://phab.mercurial-scm.org/D6551
author | Taapas Agrawal <taapas2897@gmail.com> |
---|---|
date | Thu, 20 Jun 2019 11:40:08 +0530 |
parents | dc3fdd1b5af4 |
children | db5560c07a28 |
line wrap: on
line diff
--- a/hgext/histedit.py Sun Jun 09 02:12:58 2019 +0530 +++ b/hgext/histedit.py Thu Jun 20 11:40:08 2019 +0530 @@ -2313,6 +2313,6 @@ def extsetup(ui): cmdutil.summaryhooks.add('histedit', summaryhook) - statemod.addunfinished('histedit', fname='histedit-state', allowcommit=True) - cmdutil.afterresolvedstates.append( - ['histedit-state', _('hg histedit --continue')]) + statemod.addunfinished('histedit', fname='histedit-state', allowcommit=True, + continueflag=True) +