--- a/tests/test-rollback Tue Nov 24 21:08:39 2009 -0500
+++ b/tests/test-rollback Tue Nov 24 21:08:40 2009 -0500
@@ -34,6 +34,15 @@
echo '% rollback by pretxncommit saves commit message (issue 1635)'
echo a >> a
hg --config hooks.pretxncommit=/bin/false commit -m"precious commit message"
-
echo '.hg/last-message.txt:'
cat .hg/last-message.txt
+
+echo '% same thing, but run $EDITOR'
+cat > $HGTMP/editor <<'__EOF__'
+#!/bin/sh
+echo "another precious commit message" > "$1"
+__EOF__
+chmod +x $HGTMP/editor
+HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=/bin/false commit
+echo '.hg/last-message.txt:'
+cat .hg/last-message.txt