# HG changeset patch # User Anton Shestakov # Date 1632156527 -10800 # Node ID 51249e4e9025d3977dd25ccd36e1252ea325c01d # Parent af2fec9b541c99e1e90c6df42f04a3209ec87012 tests: port upstream 86f39a89b63e to our version of mkcommit() Now we can use it with --close-branch or --secret, for example. diff -r af2fec9b541c -r 51249e4e9025 tests/test-topic-flow-publish-bare.t --- a/tests/test-topic-flow-publish-bare.t Sun Sep 12 20:49:21 2021 +0300 +++ b/tests/test-topic-flow-publish-bare.t Mon Sep 20 19:48:47 2021 +0300 @@ -364,8 +364,7 @@ Trying to push changeset without topic (would publish them) - $ mkcommit c_aM0 - $ hg phase --secret --force + $ mkcommit c_aM0 --secret $ hg push --config experimental.auto-publish=abort -r . pushing to $TESTTMP/bare-branch-server searching for changes diff -r af2fec9b541c -r 51249e4e9025 tests/testlib/common.sh --- a/tests/testlib/common.sh Sun Sep 12 20:49:21 2021 +0300 +++ b/tests/testlib/common.sh Mon Sep 20 19:48:47 2021 +0300 @@ -1,9 +1,11 @@ . $TESTDIR/testlib/pythonpath.sh mkcommit() { - echo "$1" > "$1" - hg add "$1" - hg ci -m "$1" + name="$1" + shift + echo "$name" > "$name" + hg add "$name" + hg ci -m "$name" "$@" } getid() {