Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue1105.sh
blob959761d5f319722050d5f9d1ff10bf7a68ad04c2
1 #!/usr/bin/env bash
2 set -ev
4 ## The builtin ! has the wrong semantics for not.
5 not () { "$@" && exit 1 || :; }
7 rm -rf temp
8 mkdir temp
9 cd temp
10 darcs init
11 darcs changes
13 echo changes summary > _darcs/prefs/defaults
14 darcs changes
15 echo changes summary arg > _darcs/prefs/defaults
16 not darcs changes
17 echo ALL summary > _darcs/prefs/defaults
18 darcs changes
19 echo ALL summary arg > _darcs/prefs/defaults
20 not darcs changes
22 echo changes last 10 > _darcs/prefs/defaults
23 darcs changes
24 echo changes last > _darcs/prefs/defaults
25 not darcs changes
26 echo ALL last 10 > _darcs/prefs/defaults
27 darcs changes
28 echo ALL last > _darcs/prefs/defaults
29 not darcs changes
31 echo changes author me > _darcs/prefs/defaults
32 not darcs changes
33 echo ALL author me > _darcs/prefs/defaults
34 darcs changes
35 echo ALL unknown > _darcs/prefs/defaults
36 not darcs changes
38 cd ..
39 rm -rf temp