Follow upstream changes -- rest
[git-darcs-import.git] / tests / unrecord-remove.sh
blob8dba5af6a58bbc1ba05497cb609fdb68be59f69b
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1
5 mkdir temp1
6 cd temp1
7 darcs init
8 echo foo > foo
9 darcs add foo
11 darcs record -a -m 'addfoo'
13 darcs remove foo
15 darcs whatsnew > correct
16 cat correct
18 darcs record -a -m 'rmfoo'
20 darcs unrecord -a --last 1
22 darcs whatsnew > unrecorded
23 cat unrecorded
25 diff -u correct unrecorded
27 cd ..
28 rm -rf temp1