# HG changeset patch # User Augie Fackler # Date 1426211360 14400 # Node ID 68d998a76994415dfb42c0e0d2cfc826d167f7f9 # Parent 49cd847fd69ace75047cd4e32611f86b8e937a1b 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. diff -r 49cd847fd69a -r 68d998a76994 tests/test-histedit-edit.t --- 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