From patchwork Mon Sep 16 17:56:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6856: amend: enable support for using the secret phase From: phabricator X-Patchwork-Id: 41683 Message-Id: <41a86c7109deca67796e72d7b023fea8@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 16 Sep 2019 17:56:02 +0000 Closed by commit rHGf10a0f5eedae: amend: enable support for using the secret phase (authored by mharbison72). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6856?vs=16549&id=16558 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6856/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6856 AFFECTED FILES hgext/amend.py relnotes/next tests/test-amend.t CHANGE DETAILS To: mharbison72, #hg-reviewers, pulkit Cc: mercurial-devel 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,