changeset 43761: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 5b90a050082b
children 1d1232c0726f
files tests/test-shelve.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-shelve.t	Tue Nov 19 14:13:04 2019 -0500
+++ b/tests/test-shelve.t	Wed Nov 20 08:55:24 2019 +0100
@@ -951,6 +951,16 @@
   +++ b/jungle
   @@ -0,0 +1,1 @@
   +babar
+
+Test shelve --delete
+
+  $ hg shelve --list
+  default         (*s ago)    changes to: create conflict (glob)
+  $ hg shelve --delete doesnotexist
+  abort: shelved change 'doesnotexist' not found
+  [255]
+  $ hg shelve --delete default
+
   $ cd ..
 
 Test visibility of in-memory changes inside transaction to external hook