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

create_git test

rm -rf test.darcs
mkdir test.darcs
cd test.darcs
darcs init
cd ..
gmark="$(pwd)/test.gfe-marks"
dmark="$(pwd)/test.dfi-marks"
(cd test; git fast-export --export-marks=$gmark HEAD) | (cd test.darcs; darcs-fast-import --export-marks=$dmark)
diff_importgit test || die "initial conversion differs"
upd_file_git test file2 upd_contents
(cd test; git fast-export --export-marks=$gmark --import-marks=$gmark HEAD) | (cd test.darcs; darcs-fast-import --export-marks=$dmark --import-marks=$dmark)
diff_importgit test || die "update differs"