Mercurial > hg
changeset 42935:f10a0f5eedae
amend: enable support for using the secret phase
This comes from the evolve extension's version of amend. The logic was already
in place, and appears to be the last of the trivial things that can be enabled.
Differential Revision: https://phab.mercurial-scm.org/D6856
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 14 Sep 2019 23:41:31 -0400 |
parents | 09d46b90f6f9 |
children | 2da754532dd3 |
files | hgext/amend.py relnotes/next tests/test-amend.t |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/amend.py Sat Sep 14 23:40:12 2019 -0400 +++ b/hgext/amend.py Sat Sep 14 23:41:31 2019 -0400 @@ -36,6 +36,7 @@ ('i', 'interactive', None, _('use interactive mode')), (b'', b'close-branch', None, _(b'mark a branch as closed, hiding it from the branch list')), + (b's', b'secret', None, _(b'use the secret phase for committing')), ('n', 'note', '', _('store a note on the amend')), ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.commitopts3,
--- a/relnotes/next Sat Sep 14 23:40:12 2019 -0400 +++ b/relnotes/next Sat Sep 14 23:41:31 2019 -0400 @@ -4,6 +4,8 @@ * The amend extension supports the `--close-branch` argument. + * The amend extension supports the `--secret` argument. + * The uncommit extension supports the `rewrite.update-timestamp` config option. == New Experimental Features ==
--- a/tests/test-amend.t Sat Sep 14 23:40:12 2019 -0400 +++ b/tests/test-amend.t Sat Sep 14 23:41:31 2019 -0400 @@ -452,9 +452,10 @@ Close branch - $ hg amend --close-branch - $ hg log --limit 1 -T 'close={get(extras, "close")}\n' + $ hg amend --secret --close-branch + $ hg log --limit 1 -T 'close={get(extras, "close")}\nphase={phase}\n' close=1 + phase=secret $ cd ..