fix timezones in darcs-fast-export, take 2
[girocco-darcs-fast-export.git] / t / testimport-git-twoway.sh
blobf9b515a4b0f8d3e974c246d8c0437be2d1dcd6d4
1 . ./lib.sh
3 create_git test
5 rm -rf test.darcs
6 mkdir test.darcs
7 cd test.darcs
8 darcs init
9 cd ..
10 gmark="$(pwd)/test.gmarks"
11 dmark="$(pwd)/test.dmarks"
13 (cd test; git fast-export --export-marks=$gmark HEAD) | (cd test.darcs; darcs-fast-import --export-marks=$dmark)
14 diff_importgit test || die "initial conversion differs"
15 upd_file_git test file2 upd_contents
16 (cd test; git fast-export --export-marks=$gmark --import-marks=$gmark HEAD) | (cd test.darcs; darcs-fast-import --export-marks=$dmark --import-marks=$dmark)
17 diff_importgit test || die "git -> darcs update #1 differs"
18 upd_file_darcs test.darcs file2 upd_contents2
19 darcs-fast-export --export-marks=$dmark --import-marks=$dmark --working test/.git/darcs test.darcs | (cd test; git fast-import --export-marks=$gmark --import-marks=$gmark)
20 (cd test; git checkout -f)
21 diff_importgit test || die "darcs -> git update #2 differs"
22 upd_file_git test file2 upd_contents3
23 upd_file_git test file2 upd_contents32
24 (cd test; git fast-export --export-marks=$gmark --import-marks=$gmark HEAD) | (cd test.darcs; darcs-fast-import --export-marks=$dmark --import-marks=$dmark)
25 diff_importgit test || die "git -> darcs update #3 differs"
26 upd_file_darcs test.darcs file2 upd_contents4
27 upd_file_darcs test.darcs file2 upd_contents42
28 darcs-fast-export --export-marks=$dmark --import-marks=$dmark --working test/.git/darcs test.darcs | (cd test; git fast-import --export-marks=$gmark --import-marks=$gmark)
29 (cd test; git checkout -f)
30 diff_importgit test || die "darcs -> git update #4 differs"