comparison tests/test-share.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 bdcaf612e75a
children 9e67ce5c4fd0
comparison
equal deleted inserted replaced
31766:bdcaf612e75a 31767:6c800688afe1
166 Therefore, this test scenario ignores checking visibility of 166 Therefore, this test scenario ignores checking visibility of
167 .hg/bookmakrs.pending in repo2, which shares repo1 without bookmarks. 167 .hg/bookmakrs.pending in repo2, which shares repo1 without bookmarks.
168 168
169 $ cat > $TESTTMP/checkbookmarks.sh <<EOF 169 $ cat > $TESTTMP/checkbookmarks.sh <<EOF
170 > echo "@repo1" 170 > echo "@repo1"
171 > hg -R $TESTTMP/repo1 bookmarks 171 > hg -R "$TESTTMP/repo1" bookmarks
172 > echo "@repo2" 172 > echo "@repo2"
173 > hg -R $TESTTMP/repo2 bookmarks 173 > hg -R "$TESTTMP/repo2" bookmarks
174 > echo "@repo3" 174 > echo "@repo3"
175 > hg -R $TESTTMP/repo3 bookmarks 175 > hg -R "$TESTTMP/repo3" bookmarks
176 > exit 1 # to avoid adding new bookmark for subsequent tests 176 > exit 1 # to avoid adding new bookmark for subsequent tests
177 > EOF 177 > EOF
178 178
179 $ cd ../repo1 179 $ cd ../repo1
180 $ hg --config hooks.pretxnclose="sh $TESTTMP/checkbookmarks.sh" -q book bmX 180 $ hg --config hooks.pretxnclose="sh $TESTTMP/checkbookmarks.sh" -q book bmX