diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1742,8 +1742,6 @@ self.toggleamend(self.opts, test) elif keypressed in ["c"]: return True - elif test and keypressed in ['X']: - return True elif keypressed in ["r"]: if self.reviewcommit(): self.opts['review'] = True diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t --- a/tests/test-commit-interactive-curses.t +++ b/tests/test-commit-interactive-curses.t @@ -35,7 +35,7 @@ $ hg add a $ cat <testModeCommands > TOGGLE - > X + > c > EOF $ hg commit -i -m "a" -d "0 0" no changes to record @@ -50,7 +50,7 @@ Committing some changes $ cat <testModeCommands - > X + > c > EOF $ hg commit -i -m "a" -d "0 0" $ hg tip @@ -73,7 +73,7 @@ $ cat <testModeCommands > TOGGLE > KEY_DOWN - > X + > c > EOF $ hg commit -i -m "one file" -d "0 0" $ hg tip @@ -116,7 +116,7 @@ > a > a > e - > X + > c > EOF $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i -m "one hunk" -d "0 0" editor ran @@ -184,7 +184,7 @@ $ cat <testModeCommands > TOGGLE > TOGGLE - > X + > c > EOF $ hg st A x @@ -203,7 +203,7 @@ +hello $ cat <testModeCommands > a - > X + > c > EOF $ hg commit -i -m "newly added file" -d "0 0" saved backup bundle to $TESTTMP/a/.hg/strip-backup/2b0e9be4d336-3cf0bc8c-amend.hg @@ -217,7 +217,7 @@ Make file empty $ printf "" > x $ cat <testModeCommands - > X + > c > EOF $ hg ci -i -m emptify -d "0 0" $ hg update -C '.^' -q @@ -241,7 +241,7 @@ > KEY_DOWN > e > TOGGLE - > X + > c > EOF $ printf "printf 'editor ran\n'; exit 0" > editor.sh $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i -m "edit hunk" -d "0 0" -q