Follow upstream changes -- rest
[git-darcs-import.git] / tests / ignore-this.sh
blob127141b46fec6942b0c154ec8ee28601b6cb429e
1 #!/usr/bin/env bash
2 set -ev
4 not () { "$@" && exit 1 || :; }
7 rm -rf temp1
8 mkdir temp1
9 cd temp1
10 darcs init
12 touch foo
13 darcs add foo
15 cat > log <<EOF
16 add file foo
17 Ignore-this: My private secret.
18 EOF
20 echo n | not darcs record -a --logfile log > out
21 cat out
22 grep Proceed out
24 darcs whatsnew
26 echo y | darcs record -a --logfile log
28 not darcs whatsnew
30 darcs changes > out
31 cat out
32 not grep 'My private secret' out
34 darcs changes --xml > out
35 cat out
36 grep 'My private secret' out
38 cd ..
39 rm -rf temp1