--- a/tests/test-commit-amend.t Wed Mar 12 10:26:48 2014 +0200
+++ b/tests/test-commit-amend.t Thu Mar 13 19:48:41 2014 +0900
@@ -765,3 +765,14 @@
$ hg ci --close-branch -m'open and close'
abort: can only close branch heads
[255]
+
+Test that amend with --secret creates new secret changeset forcibly
+---------------------------------------------------------------------
+
+ $ hg phase '.^::.'
+ 35: draft
+ 36: draft
+ $ hg commit --amend --secret -m 'amend as secret' -q
+ $ hg phase '.^::.'
+ 35: draft
+ 38: secret