summaryrefslogtreecommitdiff
path: root/exporters/darcs/t/test-hg.sh
blob: 95bfc4b41dc2068be7df9e614e0b9bdc155a7729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
. ./lib.sh

create_darcs test --old-fashioned-inventory

rm -rf test.darcs test.hg
mkdir test.hg
cd test.hg
hg init
cd ..
if [ "$1" != "--stdout" ]; then
	darcs-fast-export test |(cd test.hg; hg fastimport -)
	diff_hg test
	exit $?
else
	darcs-fast-export test
fi