Mercurial > hg
comparison tests/test-shelve.t @ 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 | cc7eb0b558c0 |
children | b4535c88a05b |
comparison
equal
deleted
inserted
replaced
49430:2064bbf7a1d5 | 49431:ad1db3861a8b |
---|---|
1573 $ ls .hg/shelve-backup | 1573 $ ls .hg/shelve-backup |
1574 default.hg | 1574 default.hg |
1575 default.patch | 1575 default.patch |
1576 default.shelve | 1576 default.shelve |
1577 #endif | 1577 #endif |
1578 | |
1579 | |
1580 -- allow for phase-based shelves to be disabled | |
1581 | |
1582 $ hg update -q --clean . | |
1583 $ hg strip -q --hidden -r 0 | |
1584 $ rm -r .hg/shelve* | |
1585 | |
1586 #if phasebased | |
1587 $ cat <<EOF >> $HGRCPATH | |
1588 > [shelve] | |
1589 > store = strip | |
1590 > EOF | |
1591 #endif | |
1592 | |
1593 $ echo import this >> somefile.py | |
1594 $ hg add somefile.py | |
1595 $ hg shelve -q | |
1596 $ hg log --hidden | |
1597 $ hg unshelve -q |