#!/bin/bash
set -ev
. lib

rm -rf R git-R git_marks darcs_marks export_data

darcs init --repo R
git init git-R

cd R
echo 'a' > a && darcs add a && darcs rec -am 'Add a'

cd ..
darcs-fastconvert export R --write-marks=darcs_marks > export_data

(cd git-R && git fast-import --export-marks=../git_marks < ../export_data)

cd R
echo 'b' > b && darcs add b && darcs rec -am 'Add b'

cd ..
darcs-fastconvert export R --read-marks=darcs_marks > export_data
(cd git-R && git fast-import --import-marks=../git_marks < ../export_data)

Add test for incremental export
Add test for incremental export
