tests: check that we delete evolvestate correctly after abort/stop stable
authorPulkit Goyal <pulkit@yandex-team.ru>
Mon, 20 Aug 2018 12:19:05 +0300
branchstable
changeset 3980 828b423545b1
parent 3979 db44da7b9097
child 3981 b4d0245c7f40
tests: check that we delete evolvestate correctly after abort/stop This patch adds test to check whether we delete the evolvestate correctly after aborting or stopping an interrupted evolve which is caused because of `next --evolve`.
tests/test-evolve-abort-orphan.t
tests/test-evolve-stop-orphan.t
--- a/tests/test-evolve-abort-orphan.t	Mon Aug 20 23:04:37 2018 +0200
+++ b/tests/test-evolve-abort-orphan.t	Mon Aug 20 12:19:05 2018 +0300
@@ -540,3 +540,20 @@
   $ hg evolve --abort
   evolve aborted
   working directory is now at c1f4718020e3
+
+  $ ls .hg/
+  00changelog.i
+  bookmarks
+  branch
+  cache
+  dirstate
+  evolvestate
+  last-message.txt
+  requires
+  store
+  undo.backup.bookmarks
+  undo.backup.dirstate
+  undo.bookmarks
+  undo.branch
+  undo.desc
+  undo.dirstate
--- a/tests/test-evolve-stop-orphan.t	Mon Aug 20 23:04:37 2018 +0200
+++ b/tests/test-evolve-stop-orphan.t	Mon Aug 20 12:19:05 2018 +0300
@@ -169,6 +169,19 @@
       () draft
 
   $ hg status
+  $ ls .hg/
+  00changelog.i
+  branch
+  cache
+  dirstate
+  last-message.txt
+  requires
+  store
+  undo.backup.dirstate
+  undo.bookmarks
+  undo.branch
+  undo.desc
+  undo.dirstate
 
 Checking when multiple revs need to be evolved, some revs evolve without
 conflicts