Follow upstream changes -- rest
[git-darcs-import.git] / tests / illegal_mv.sh
blobed4ab6cda5f052f7a776f798ffea9162bbfced9d
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp
5 mkdir temp
6 cd temp
8 darcs initialize
9 echo text > afile.txt
10 darcs add afile.txt
11 darcs record --author me --all --no-test --patch-name init
12 mkdir d
13 echo The following mv should fail, since d isnt in the repo.
14 if darcs mv afile.txt d/afile.txt; then
15 false
18 # Now clean up.
19 cd ..
20 rm -rf temp