--- a/tests/test-shelve.t Tue Jun 30 22:02:40 2015 -0700
+++ b/tests/test-shelve.t Wed Jul 01 13:13:02 2015 -0700
@@ -85,6 +85,12 @@
nothing changed
[1]
+make sure shelve files were backed up
+
+ $ ls .hg/shelve-backup
+ default.hg
+ default.patch
+
create an mq patch - shelving should work fine with a patch applied
$ echo n > n
@@ -154,6 +160,14 @@
$ hg shelve -d default
$ hg qfinish -a -q
+ensure shelve backups aren't overwritten
+
+ $ ls .hg/shelve-backup/
+ default-1.hg
+ default-1.patch
+ default.hg
+ default.patch
+
local edits should not prevent a shelved change from applying
$ printf "z\na\n" > a/a