4 # trick: requiring something to fail
5 not
() { "$@" && exit 1 ||
:; }
7 # A test for darcs resolve detecting a conflict, inspired by bug #152 in RT
11 # set up the repository
18 echo "apply allow-conflicts" > _darcs
/prefs
/defaults
19 # note: to make this pass, change echo to echo -n
21 echo "from temp1" > one.txt
23 darcs record
-A bar
-am "add one.txt"
31 darcs show files |
grep one.txt
32 echo "in tmp2" >> one.txt
33 darcs whatsnew
-s |
grep M
34 darcs record
-A bar
-am "add extra line"
35 darcs annotate
-p .
-u
38 not
grep -i conflicts log