Follow upstream changes -- Bytestring updates
[git-darcs-import.git] / tests / obliterate-add.sh
blob8c280b8abcb062a6952e2dfe01d3c241d2860e71
1 #!/usr/bin/env bash
2 set -ev
4 ## The builtin ! has the wrong semantics for not.
5 not () { "$@" && exit 1 || :; }
7 rm -rf temp1
8 mkdir temp1
9 cd temp1
10 darcs init
11 echo foo > foo
12 darcs add foo
14 darcs record -a -m 'addfoo'
16 darcs obliterate -a
18 not darcs whatsnew
20 cd ..
21 rm -rf temp1