Follow upstream changes -- rest
[git-darcs-import.git] / tests / disable.sh
blobbcf1a318a8713b684016125be26a07fe180cb78f
1 #!/usr/bin/env bash
2 set -ev
3 not () { "$@" && exit 1 || :; }
5 # Some tests for 'darcs whatsnew '
7 rm -rf temp1
8 mkdir temp1
9 cd temp1
10 darcs init
11 touch look_summary.txt
12 # --disable works on command line
13 not darcs whatsnew -sl --disable 2> log
14 grep -i disable log
15 # --disable works from defaults
16 echo 'whatsnew --disable' > _darcs/prefs/defaults
17 not darcs whatsnew -sl 2> log
18 grep -i disable log
19 cd ..
21 rm -rf temp1