4 # Note that this is fixed, the lines marked # BUG HERE
5 # should be moved back into merging_newlines.sh
7 # trick: requiring something to fail
8 not
() { "$@" && exit 1 ||
:; }
12 # set up the repository
19 echo "apply allow-conflicts" > _darcs
/prefs
/defaults
20 # note: to make this pass, change echo to echo -n
22 echo "from temp1" > one.txt
24 darcs record
-A bar
-am "add one.txt"
32 darcs show files |
grep one.txt
33 echo "in tmp2" >> one.txt
34 darcs whatsnew
-s |
grep M
35 darcs record
-A bar
-am "add extra line"
36 darcs annotate
-p .
-u
39 not
grep -i conflicts log
41 # after a conflict, darcs resolve should report a conflict
42 darcs mark-conflicts
> log
2>&1
44 not
grep -i 'no conflicts' log