Follow upstream changes -- rest
[git-darcs-import.git] / tests / tricky_unrecord.sh
blob2d05c546550c4073ee5dea5171bbbfc67d571c7a
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp
5 mkdir temp
6 cd temp
7 darcs init
8 date > temp.c
9 darcs add temp.c
10 darcs record --all -A test --patch-name=hi
12 mkdir d
13 darcs add d
14 darcs mv temp.c d/
15 darcs record --all -A test --patch-name=mvetc
16 darcs show contents d/temp.c | cmp d/temp.c -
18 echo y/d/y | tr / \\012 | darcs unrecord
19 darcs whatsnew
20 # darcs show contents d/temp.c | cmp d/temp.c -
22 darcs record --all -A test --patch-name=again
23 darcs show contents d/temp.c | cmp d/temp.c -
25 cd ..
26 rm -rf temp