tests/test-bookmarks.t
changeset 31770 6c800688afe1
parent 31072 0332b8fafd05
child 32489 bce5ebe72859
equal deleted inserted replaced
31769:bdcaf612e75a 31770: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