Mercurial > hg
changeset 49431:ad1db3861a8b
phase-shelve: Add test for shelve technique config
author | Jason R. Coombs <jaraco@jaraco.com> |
---|---|
date | Wed, 10 Aug 2022 15:31:39 -0400 |
parents | 2064bbf7a1d5 |
children | b4535c88a05b |
files | tests/test-shelve.t |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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