repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update readmes
[git-darcs-import.git]
/
tests
/
illegal_mv.sh
blob
ed4ab6cda5f052f7a776f798ffea9162bbfced9d
1
#!/usr/bin/env bash
2
set -ev
3
4
rm
-rf
temp
5
mkdir temp
6
cd
temp
7
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
16
fi
17
18
# Now clean up.
19
cd
..
20
rm
-rf
temp
21