4 not
() { "$@" && exit 1 ||
:; }
7 if uname |
grep -i cygwin
> /dev
/null
; then
14 # Some tests for 'darcs whatsnew '
21 # RT#505 whatsnew -s after removal of file without a newline
24 darcs record
-la -m "add foo" |
grep "Finished record"
26 darcs whatsnew
-s |
grep R
27 darcs record
-a -m "remove foo"
29 # RT#245 --look-for-adds implies --summary
30 touch look_summary.txt
31 darcs whatsnew
-l |
grep -i "a ./look_summary.txt"
33 #whatsnew works with uncommon file names
34 if echo $OS |
grep -i windows
; then
35 echo test does not work on windows
41 not
grep "no changes" log
44 # whatsnew works with absolute paths
45 IFS
='' # annoying hack for cygwin and portable_pwd below
50 darcs whatsnew
${DIR}/date.t |
grep hunk