tests/test-rollback.t
changeset 16901 5b89700cce30
parent 15623 fc8c7a5ccc4a
child 16913 f2719b387380
--- a/tests/test-rollback.t	Sun Jun 10 14:14:52 2012 +0200
+++ b/tests/test-rollback.t	Sun Jun 10 14:41:14 2012 +0200
@@ -110,12 +110,10 @@
 
 same thing, but run $EDITOR
 
-  $ cat > editor << '__EOF__'
-  > #!/bin/sh
+  $ cat > editor.sh << '__EOF__'
   > echo "another precious commit message" > "$1"
   > __EOF__
-  $ chmod +x editor
-  $ HGEDITOR="'`pwd`'"/editor hg --config hooks.pretxncommit=false commit 2>&1
+  $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg --config hooks.pretxncommit=false commit 2>&1
   transaction abort!
   rollback completed
   note: commit message saved in .hg/last-message.txt