diff --git a/tests/test-obsolete-check-push.t b/tests/test-obsolete-check-push.t
index fc751824ae97d23cb18af8c85751bbe0b6582414_dGVzdHMvdGVzdC1vYnNvbGV0ZS1jaGVjay1wdXNoLnQ=..5ff77aaba1e4b04c1b6d6872a0e97ae84d767a56_dGVzdHMvdGVzdC1vYnNvbGV0ZS1jaGVjay1wdXNoLnQ= 100644
--- a/tests/test-obsolete-check-push.t
+++ b/tests/test-obsolete-check-push.t
@@ -179,3 +179,31 @@
   [255]
 
   $ cd ../..
+
+Tests that user get warned if it is about to publish obsolete/unstable content
+------------------------------------------------------------------------------
+
+Orphan from pruning
+-------------------
+
+Make sure the only difference is phase:
+
+  $ cd check-pruned/client
+  $ hg push --force --rev 'not desc("unrelated")'
+  pushing to $TESTTMP/check-pruned/server
+  searching for changes
+  no changes found
+  1 new obsolescence markers
+  obsoleted 1 changesets
+  1 new orphan changesets
+  [1]
+
+Check something prevents a silent publication of the obsolete changeset
+
+  $ hg push --publish --new-branch
+  pushing to $TESTTMP/check-pruned/server
+  searching for changes
+  abort: push includes orphan changeset: c09d8ab29fda!
+  [255]
+
+  $ cd ../..