changeset 24299:68d998a76994

test-histedit-edit.t: demonstrate qnew fails during a histedit (issue4366) This was accidentally fixed by other work, but given that it's been broken in the past, I'd like to have a test defending us against regressions in this area, especially as we add more functionality to histedit.
author Augie Fackler <augie@google.com>
date Thu, 12 Mar 2015 21:49:20 -0400
parents 49cd847fd69a
children a07314472a80
files tests/test-histedit-edit.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-histedit-edit.t	Thu Mar 12 18:18:29 2015 -0700
+++ b/tests/test-histedit-edit.t	Thu Mar 12 21:49:20 2015 -0400
@@ -95,6 +95,13 @@
   $ hg ci -m 'wat'
   created new head
   $ echo a > e
+
+qnew should fail while we're in the middle of the edit step
+
+  $ hg --config extensions.mq= qnew please-fail
+  abort: histedit in progress
+  (use 'hg histedit --continue' or 'hg histedit --abort')
+  [255]
   $ HGEDITOR='echo foobaz > ' hg histedit --continue 2>&1 | fixbundle
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved