Mercurial > hg
comparison tests/test-shelve.t @ 43728:4330851947fb
tests: add more tests for "hg shelve --delete"
It appears that the only tests for "hg shelve --delete" concern command
errors (e.g. incompatible command options). Adding some more to check
that non-existent names are handled and a success case.
Differential Revision: https://phab.mercurial-scm.org/D7460
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Wed, 20 Nov 2019 08:55:24 +0100 |
parents | 5c285c8e4f98 |
children | ae4d729eb3c8 69b091cdc506 |
comparison
equal
deleted
inserted
replaced
43727:5b90a050082b | 43728:4330851947fb |
---|---|
949 new file mode 100644 | 949 new file mode 100644 |
950 --- /dev/null | 950 --- /dev/null |
951 +++ b/jungle | 951 +++ b/jungle |
952 @@ -0,0 +1,1 @@ | 952 @@ -0,0 +1,1 @@ |
953 +babar | 953 +babar |
954 | |
955 Test shelve --delete | |
956 | |
957 $ hg shelve --list | |
958 default (*s ago) changes to: create conflict (glob) | |
959 $ hg shelve --delete doesnotexist | |
960 abort: shelved change 'doesnotexist' not found | |
961 [255] | |
962 $ hg shelve --delete default | |
963 | |
954 $ cd .. | 964 $ cd .. |
955 | 965 |
956 Test visibility of in-memory changes inside transaction to external hook | 966 Test visibility of in-memory changes inside transaction to external hook |
957 ------------------------------------------------------------------------ | 967 ------------------------------------------------------------------------ |
958 | 968 |