4 ## I would use the builtin !, but that has the wrong semantics.
5 not
() { "$@" && exit 1 ||
:; }
12 # Here we check whether recording just one of two --look-for-add
13 # addfiles causes any trouble (which it doesn't)
17 echo yyd | darcs record
-l -m ff
19 cat _darcs
/patches
/pending
24 # Try recording a file add without --look-for-adds, with a setpref
25 # patch present that we don't record.
27 darcs setpref boringfile .boring
31 echo yyd | darcs record
-mbar
33 cat _darcs
/patches
/pending
37 test -z "`darcs whatsnew -s`"
39 # Now try the same thing using --look-for-adds
45 # remove any files added by profiling or hpc...
46 rm -f darcs.tix darcs.prof
48 echo yyd | darcs record
--look-for-adds -mfoo
50 cat _darcs
/patches
/pending
54 test -z "`darcs whatsnew -s`"