changeset 38181:712d6f535fc9 stable

tests: demonstrate inconsistent messaging around interrupted rebases
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Jun 2018 13:25:45 -0400
parents 6ae62d62c3f6
children 79c54e7c0c52
files tests/test-rebase-abort.t
diffstat 1 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-rebase-abort.t	Thu May 31 22:15:52 2018 -0400
+++ b/tests/test-rebase-abort.t	Sat Jun 02 13:25:45 2018 -0400
@@ -376,6 +376,37 @@
   rebasing 4:e80b69427d80 "c"
   abort: ^C
   [255]
+
+New operations are blocked with the correct state message
+
+  $ find .hg -name '*state' -prune | sort
+  .hg/dirstate
+  .hg/merge/state
+  .hg/rebasestate
+  .hg/undo.backup.dirstate
+  .hg/undo.dirstate
+  .hg/updatestate
+
+XXX: This should complain about needing to abort/continue rebase
+  $ hg rebase -s 3 -d tip
+  abort: last update was interrupted
+  (use 'hg update' to get a consistent checkout)
+  [255]
+  $ hg up .
+  abort: rebase in progress
+  (use 'hg rebase --continue' or 'hg rebase --abort')
+  [255]
+  $ hg up -C .
+  abort: rebase in progress
+  (use 'hg rebase --continue' or 'hg rebase --abort')
+  [255]
+
+XXX: This should complain about needing to abort/continue rebase
+  $ hg graft 3
+  abort: last update was interrupted
+  (use 'hg update' to get a consistent checkout)
+  [255]
+
   $ hg rebase --abort
   saved backup bundle to $TESTTMP/interrupted/.hg/strip-backup/3d8812cf300d-93041a90-backup.hg
   rebase aborted