--- a/tests/test-shelve.t Wed Aug 10 14:39:28 2022 -0400
+++ b/tests/test-shelve.t Wed Aug 10 15:31:39 2022 -0400
@@ -1575,3 +1575,23 @@
default.patch
default.shelve
#endif
+
+
+-- allow for phase-based shelves to be disabled
+
+ $ hg update -q --clean .
+ $ hg strip -q --hidden -r 0
+ $ rm -r .hg/shelve*
+
+#if phasebased
+ $ cat <<EOF >> $HGRCPATH
+ > [shelve]
+ > store = strip
+ > EOF
+#endif
+
+ $ echo import this >> somefile.py
+ $ hg add somefile.py
+ $ hg shelve -q
+ $ hg log --hidden
+ $ hg unshelve -q