fix timezones in darcs-fast-export, take 2
[girocco-darcs-fast-export.git] / t / test-git-incremental.sh
blob1c62b9af32ff74fc1368d8f255c1e98dbd72b013
1 . ./lib.sh
3 create_darcs test --old-fashioned-inventory
5 rm -rf test.darcs test.git
6 mkdir test.git
7 cd test.git
8 git --bare init
9 cd ..
10 if [ "$1" != "--stdout" ]; then
11 dmark="$(pwd)/test.dfe-marks"
12 gmark="$(pwd)/test.gfi-marks"
13 rm -f $mark $gmark
14 darcs-fast-export --export-marks=$dmark test |(cd test.git; git fast-import --export-marks=$gmark)
15 diff_git test || die "initial conversion differs"
16 upd_file_darcs test file2 upd_contents
17 darcs-fast-export --export-marks=$dmark --import-marks=$dmark test |(cd test.git; git fast-import --export-marks=$gmark --import-marks=$gmark)
18 diff_git test || die "update differs"
19 upd_file_darcs test hungarian.gif "binary to text"
20 darcs-fast-export --export-marks=$dmark --import-marks=$dmark test |(cd test.git; git fast-import --export-marks=$gmark --import-marks=$gmark)
21 diff_git test || die "update2 differs"
22 else
23 darcs-fast-export test