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"