comparison tests/test-hook.t @ 31767:6c800688afe1

tests: quote paths in shell script hooks Without the quoting, MSYS will remove the '\' directory separators, and the repo can't be opened.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 01 Apr 2017 15:23:26 -0400
parents aff7b32b3c05
children c2380b448265
comparison
equal deleted inserted replaced
31766:bdcaf612e75a 31767:6c800688afe1
855 (check (in)visibility of new changeset while transaction running in 855 (check (in)visibility of new changeset while transaction running in
856 repo) 856 repo)
857 857
858 $ cat > $TESTTMP/checkpending.sh <<EOF 858 $ cat > $TESTTMP/checkpending.sh <<EOF
859 > echo '@a' 859 > echo '@a'
860 > hg -R $TESTTMP/a tip -q 860 > hg -R "$TESTTMP/a" tip -q
861 > echo '@a/nested' 861 > echo '@a/nested'
862 > hg -R $TESTTMP/a/nested tip -q 862 > hg -R "$TESTTMP/a/nested" tip -q
863 > exit 1 # to avoid adding new revision for subsequent tests 863 > exit 1 # to avoid adding new revision for subsequent tests
864 > EOF 864 > EOF
865 $ hg init nested 865 $ hg init nested
866 $ cd nested 866 $ cd nested
867 $ echo a > a 867 $ echo a > a