Mercurial > hg
diff tests/test-help.t @ 42581:bb135a784b70
abort: added logic for of hg abort
This is part of `GSoC19` project `Implement abort and
continue commands`. This patch is part of the `abort plan`.
This adds the basic logic for `hg abort`. This command
aborts an multistep operation like graft, histedit, rebase,
merge and unshelve if they are in an unfinished state.
The first part of the logic is determining the unfinished
operation from the state detection API under `statemod`.
This API is extended to support `hg abort` by adding a method
to register the abort logic as a function (here `abortfunc`).
Once the unfinished operation is determined the registered
logic is used to abort the command. The benefit of this kind
of framework is that any new extension developed can support
`hg abort` by registering the command and logic under
statedetection API.
`hg abort` currently supports `--dry-run/-n` flag only.
It is used to dry run `hg abort`
Further patches sequentially add support for `graft`, `rebase`,
`unshelve`, `histedit` and `merge`.
Differential Revision: https://phab.mercurial-scm.org/D6566
author | Taapas Agrawal <taapas2897@gmail.com> |
---|---|
date | Sun, 23 Jun 2019 20:58:01 +0530 |
parents | 3de4f17f4824 |
children | 3c16b9c0b099 |
line wrap: on
line diff
--- a/tests/test-help.t Tue Jul 09 10:09:46 2019 -0400 +++ b/tests/test-help.t Sun Jun 23 20:58:01 2019 +0530 @@ -402,6 +402,7 @@ basic commands: + abort abort an unfinished operation (EXPERIMENTAL) add add the specified files on the next commit annotate, blame show changeset information by line for each file @@ -2353,6 +2354,13 @@ <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr> <tr><td> + <a href="/help/abort"> + abort + </a> + </td><td> + abort an unfinished operation (EXPERIMENTAL) + </td></tr> + <tr><td> <a href="/help/add"> add </a>