Mercurial > evolve
diff tests/test-topic-flow-publish-bare.t @ 5931:6357551cb66f stable
topic: announce ext-topics-publish capability in case of SSH and HTTP too
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 24 May 2021 14:26:42 +0800 |
parents | d46cd7cfff39 |
children | fe25ec8f0124 |
line wrap: on
line diff
--- a/tests/test-topic-flow-publish-bare.t Wed May 19 16:28:47 2021 +0800 +++ b/tests/test-topic-flow-publish-bare.t Mon May 24 14:26:42 2021 +0800 @@ -8,6 +8,8 @@ Also testing auto-publish config option with this publishing mode $ cat << EOF >> "$HGRCPATH" + > [ui] + > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh" > [experimental] > auto-publish = warn > [alias] @@ -343,12 +345,26 @@ $ hg up branchA 2 files updated, 0 files merged, 5 files removed, 0 files unresolved +Making sure the topic-publishing mode is announced as a capability + + $ hg debugcapabilities $TESTTMP/bare-branch-server | grep topics + ext-topics-publish=auto + topics + $ hg debugcapabilities ssh://user@dummy/bare-branch-server | grep topics + _exttopics_heads + ext-topics-publish=auto + topics + $ hg serve -R ../bare-branch-server -p $HGPORT -d --pid-file hg.pid + $ cat hg.pid >> $DAEMON_PIDS + $ hg debugcapabilities http://localhost:$HGPORT | grep topics + _exttopics_heads + ext-topics-publish=auto + topics + $ killdaemons.py + Trying to push changeset without topic (would publish them) $ mkcommit c_aM0 - $ hg debugcapabilities $TESTTMP/bare-branch-server | grep topics - ext-topics-publish=auto - topics $ hg push --config experimental.auto-publish=abort -r . pushing to $TESTTMP/bare-branch-server abort: push would publish 1 changesets