Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue70_setpref.sh
blob62dc02d5c164e10955b467da0dc0673648179c0f
1 #!/usr/bin/env bash
2 set -ev
4 not () { "$@" && exit 1 || :; }
6 # issue70 and RT #349 - setpref should coalesce changes
8 rm -rf temp1
9 mkdir temp1
10 cd temp1
11 darcs init
12 darcs setpref predist apple
13 darcs setpref predist banana
14 darcs setpref predist clementine
15 darcs record -a -m manamana
16 darcs changes --verbose > log
17 not grep apple log
18 not grep banana log
19 grep clementine log
20 cd ..
21 rm -rf temp1
23 # not sure what i'm going for here - if coalescing happens strictly
24 # before commuting, no problem, but what if patches are commuted
25 # before coalescing?
26 mkdir temp1
27 cd temp1
28 darcs init
29 darcs setpref predist apple
30 darcs setpref predist banana
31 darcs setpref predist apple
32 darcs setpref predist clementine
33 darcs setpref predist banana
34 darcs record -a -m manamana
35 darcs changes --verbose > log
36 not grep apple log
37 not grep clementine log
38 grep banana log
39 cd ..
40 rm -rf temp1