diff --git a/relnotes/next b/relnotes/next --- a/relnotes/next +++ b/relnotes/next @@ -54,3 +54,17 @@ * `util.dirs()` and `util.finddirs()` now include an entry for the root directory (empty string). + + * New API to manage unfinished operations: Earlier there were distinct APIs + which dealt with unfinished states and separate lists maintaining them. + eg:`cmdutil.afterresolvestates`, `cmdutil.unfinishedstates` and + `cmdutil.STATES`. Now these have been unified to a single + API which handles the various states and their utilities.This API + has been added to `state.py` and is form of class called `_statecheck`. + To register a new state for an operation you need to add a `_statecheck` + object with necessary information to `_unfinishedstates` list. + The method of registration of a `_statecheck` object into `_unfinishedstates` + is not direct but through `addunfinished()`. The data needed for various + operations to be registered under `_unfinishedstates` list is stated in + `_statecheck` class. +