D6856: amend: enable support for using the secret phase
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sun Sep 15 04:57:19 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
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.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6856
AFFECTED FILES
hgext/amend.py
relnotes/next
tests/test-amend.t
CHANGE DETAILS
diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -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 ..
diff --git a/relnotes/next b/relnotes/next
--- a/relnotes/next
+++ b/relnotes/next
@@ -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 ==
diff --git a/hgext/amend.py b/hgext/amend.py
--- a/hgext/amend.py
+++ b/hgext/amend.py
@@ -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,
To: mharbison72, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list