~ubuntu-branches/ubuntu/lucid/bzr-fastimport/lucid

« back to all changes in this revision

Viewing changes to exporters/darcs/t/test2-git-incremental-specworkdir.sh

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-09-26 00:21:27 UTC
  • mfrom: (1.1.3 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090926002127-naki02grwmkapav6
Tags: 0.9.0~bzr243-1
* New upstream snapshot.
* Bump standards version to 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
. ./lib.sh
 
2
 
 
3
create_darcs test2 --darcs-2
 
4
 
 
5
rm -rf test2.darcs test2.git
 
6
mkdir test2.git
 
7
cd test2.git
 
8
git --bare init
 
9
mkdir darcs
 
10
cd ..
 
11
if [ "$1" != "--stdout" ]; then
 
12
        dmark="$(pwd)/test2.git/darcs/test2.dfe-marks"
 
13
        gmark="$(pwd)/test2.git/darcs/test2.gfi-marks"
 
14
        rm -f $mark $gmark
 
15
        darcs-fast-export --export-marks=$dmark test2 --working test2.git/darcs/repo |(cd test2.git; git fast-import --export-marks=$gmark)
 
16
        diff_git test2 || die "initial conversion differs"
 
17
        upd_file_darcs test2 file2 upd_contents
 
18
        darcs-fast-export --export-marks=$dmark --import-marks=$dmark test2 --working test2.git/darcs/repo |(cd test2.git; git fast-import --export-marks=$gmark --import-marks=$gmark)
 
19
        diff_git test2 || die "update differs"
 
20
else
 
21
        darcs-fast-export test2
 
22
fi