# HG changeset patch # User Anton Shestakov # Date 1621389593 -28800 # Node ID 0b7328d7503a1475caaa4b4c4e4c865546566d3c # Parent 1a8e86053adb67cbf873f279820a09554ad442e9 tests: add simple auto-publish checks alongside publish-bare-branch checks diff -r 1a8e86053adb -r 0b7328d7503a tests/test-topic-flow-publish-bare.t --- a/tests/test-topic-flow-publish-bare.t Sun May 09 00:10:55 2021 +0800 +++ b/tests/test-topic-flow-publish-bare.t Wed May 19 09:59:53 2021 +0800 @@ -5,6 +5,13 @@ $ . "$TESTDIR/testlib/topic_setup.sh" $ . "$TESTDIR/testlib/common.sh" +Also testing auto-publish config option with this publishing mode + + $ cat << EOF >> "$HGRCPATH" + > [experimental] + > auto-publish = warn + > EOF + Publishing of bare branch ========================= @@ -32,6 +39,7 @@ $ mkcommit c_dB0 $ hg push pushing to $TESTTMP/bare-branch-server + 1 changesets about to be published searching for changes adding changesets adding manifests @@ -60,6 +68,7 @@ (consider using topic for lightweight branches. See 'hg help topic') $ hg push -f pushing to $TESTTMP/bare-branch-server + 2 changesets about to be published searching for changes adding changesets adding manifests @@ -88,6 +97,7 @@ $ mkcommit c_aE0 $ hg push --new-branch pushing to $TESTTMP/bare-branch-server + 1 changesets about to be published searching for changes adding changesets adding manifests @@ -153,6 +163,7 @@ (see 'hg help topics' for more information) $ hg push pushing to $TESTTMP/bare-branch-server + 1 changesets about to be published searching for changes adding changesets adding manifests @@ -193,6 +204,7 @@ $ mkcommit c_aK0 $ hg push pushing to $TESTTMP/bare-branch-server + 2 changesets about to be published searching for changes adding changesets adding manifests @@ -235,6 +247,7 @@ $ hg ci -m 'c_dL0' $ hg push pushing to $TESTTMP/bare-branch-server + 2 changesets about to be published searching for changes adding changesets adding manifests