changeset 5927:0b7328d7503a stable

tests: add simple auto-publish checks alongside publish-bare-branch checks
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 19 May 2021 09:59:53 +0800
parents 1a8e86053adb
children 16d36635f859
files tests/test-topic-flow-publish-bare.t
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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