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

« back to all changes in this revision

Viewing changes to exporters/darcs/t/testimport-copy.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
rm -rf test
 
4
mkdir test
 
5
cd test
 
6
git init
 
7
echo a > file
 
8
git add file
 
9
git commit -m a1
 
10
cp file file2
 
11
git add file2
 
12
git commit -m b
 
13
cd ..
 
14
 
 
15
rm -rf test.darcs
 
16
mkdir test.darcs
 
17
cd test.darcs
 
18
darcs init
 
19
cd ..
 
20
(cd test; git fast-export -C -C HEAD) > out
 
21
cat out | (cd test.darcs; darcs-fast-import)
 
22
if [ $? != 0 ]; then
 
23
        exit 1
 
24
fi
 
25
diff_importgit test
 
26
exit $?