Mercurial > public > mercurial-scm > hg
diff tests/test-rollback.t @ 12642:bb35840e965c
tests: remove the last traces of $HGTMP
$HGTMP isn't needed - and if we need something like that then $TESTTMP is more
appropriate.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 08 Oct 2010 22:36:11 -0500 |
parents | 8fdc11fec6ae |
children | c6e00dfcdcb8 |
line wrap: on
line diff
--- a/tests/test-rollback.t Fri Oct 08 22:36:10 2010 -0500 +++ b/tests/test-rollback.t Fri Oct 08 22:36:11 2010 -0500 @@ -74,17 +74,18 @@ precious commit message $ echo '% same thing, but run $EDITOR' % same thing, but run $EDITOR - $ cat > $HGTMP/editor <<'__EOF__' + $ cat > editor << '__EOF__' > #!/bin/sh > echo "another precious commit message" > "$1" > __EOF__ - > chmod +x "$HGTMP"/editor - > HGEDITOR="'$HGTMP'"/editor hg --config hooks.pretxncommit=false commit 2>&1 - > cat .hg/last-message.txt + $ chmod +x editor + $ HGEDITOR="'`pwd`'"/editor hg --config hooks.pretxncommit=false commit 2>&1 transaction abort! rollback completed note: commit message saved in .hg/last-message.txt abort: pretxncommit hook exited with status * (glob) + [255] + $ cat .hg/last-message.txt another precious commit message .hg/last-message.txt: