Follow upstream changes -- rest
[git-darcs-import.git] / tests / unrevert-add.sh
blob9140b8d14bd6971cb652d183a87da86db6444618
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
13 darcs whatsnew > correct
14 cat correct
16 darcs revert -a
18 not darcs whatsnew
20 darcs unrevert -a
22 darcs whatsnew > unrecorded
23 cat unrecorded
25 diff -u correct unrecorded
27 cd ..
28 rm -rf temp1