4 ## I would use the builtin !, but that has the wrong semantics.
5 not
() { "$@" && exit 1 ||
:; }
15 write_buggy_pending
() {
16 cat > _darcs
/patches
/pending
<<EOF
19 addfile ./date_moved.t
20 move ./date.t ./date_moved.t
26 echo now watch the fireworks as all sorts of things fail
27 not darcs whatsnew
&> out
29 grep 'pending has conflicts' out
31 echo pending should now be fixed but there are no changes
36 darcs revert
-a &> out
38 grep 'pending has conflicts' out
40 echo pending should now be emptied
45 darcs record
-a -m foo
&> out
47 grep 'pending has conflicts' out
49 darcs record
-a -m foo
55 grep 'The repository is already consistent' out
61 grep 'The repository is already consistent' out