comparison tests/test-bookmarks.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 0332b8fafd05
children bce5ebe72859
comparison
equal deleted inserted replaced
31766:bdcaf612e75a 31767:6c800688afe1
922 922
923 (check visible bookmarks while transaction running in repo) 923 (check visible bookmarks while transaction running in repo)
924 924
925 $ cat > $TESTTMP/checkpending.sh <<EOF 925 $ cat > $TESTTMP/checkpending.sh <<EOF
926 > echo "@repo" 926 > echo "@repo"
927 > hg -R $TESTTMP/repo bookmarks 927 > hg -R "$TESTTMP/repo" bookmarks
928 > echo "@unrelated" 928 > echo "@unrelated"
929 > hg -R $TESTTMP/unrelated bookmarks 929 > hg -R "$TESTTMP/unrelated" bookmarks
930 > exit 1 # to avoid adding new bookmark for subsequent tests 930 > exit 1 # to avoid adding new bookmark for subsequent tests
931 > EOF 931 > EOF
932 932
933 $ cd ../repo 933 $ cd ../repo
934 $ hg --config hooks.pretxnclose="sh $TESTTMP/checkpending.sh" bookmarks NEW 934 $ hg --config hooks.pretxnclose="sh $TESTTMP/checkpending.sh" bookmarks NEW