summaryrefslogtreecommitdiff
path: root/exporters/darcs/t/testimport-deleteall.sh
blob: 11c5a83366cb43f20fc37bbabe36c953fb34ade7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
. ./lib.sh

rm -rf test
mkdir test
cd test
git init
echo a > file
git add file
echo A > file2
git add file2
git commit -m a12
git rm file*
echo b>file3
git add file3
git commit -m b
cd ..

rm -rf test.darcs
mkdir test.darcs
cd test.darcs
darcs init
cd ..
(cd test; git fast-export --progress=2 HEAD) > out
sed -i '/^D file$/d' out
sed -i 's/^D file2$/deleteall/' out
cat out | (cd test.darcs; darcs-fast-import)
if [ $? != 0 ]; then
	exit 1
fi
diff_importgit test
exit $?