comparison tests/test-rollback @ 10775:c52057614c72 stable

Tests with spaces in paths This allows most tests to succeed with ./run-tests.py --tmpdir='/tmp/hg test' and introduces other tests for spaces and shell quoting
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 24 Mar 2010 01:43:24 +0100
parents a5f3f9b1c42a
children 4c94b6d0fb1c
comparison
equal deleted inserted replaced
10772:1e819576e926 10775:c52057614c72
40 echo '% same thing, but run $EDITOR' 40 echo '% same thing, but run $EDITOR'
41 cat > $HGTMP/editor <<'__EOF__' 41 cat > $HGTMP/editor <<'__EOF__'
42 #!/bin/sh 42 #!/bin/sh
43 echo "another precious commit message" > "$1" 43 echo "another precious commit message" > "$1"
44 __EOF__ 44 __EOF__
45 chmod +x $HGTMP/editor 45 chmod +x "$HGTMP"/editor
46 HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=false commit 2>&1 | sed 's,exited with status .*,exited ...,g' 46 HGEDITOR="'$HGTMP'"/editor hg --config hooks.pretxncommit=false commit 2>&1 | sed 's,exited with status .*,exited ...,g'
47 echo '.hg/last-message.txt:' 47 echo '.hg/last-message.txt:'
48 cat .hg/last-message.txt 48 cat .hg/last-message.txt