tests/test-rollback
branchstable
changeset 10775 c52057614c72
parent 10081 a5f3f9b1c42a
child 12156 4c94b6d0fb1c
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