From: Jonathan Nieder Date: Sat, 04 Dec 2010 17:29:02 GMT Subject: Re: [PATCH 9/8] svn-fe: Test script for handling of dumps with --deltas Message-ID: <20101204172902.GA28299@burratino> In-Reply-To: <20101120193016.GJ17823@burratino> Jonathan Nieder wrote: > +++ b/contrib/svn-fe/testme.sh > @@ -0,0 +1,16 @@ > +#!/bin/sh > +# Usage: > +# PATH=${git_src}/contrib/svn-fe:${git_src}/bin-wrappers:$PATH > +# testme.sh http://cvs2svn.tigris.org/svn/cvs2svn 10 test.git > +set -e > +: ${1?"URL?"} > +: ${2?"How many revisions?"} > +: ${3?"Git directory?"} > + > +git init --bare "$3" > +rm -f "$3/backflow" > +mkfifo "$3/backflow" > + > +svnrdump dump -r1:"$2" "$1" | > +svn-fe 3 +GIT_DIR=$3 git fast-import --cat-blob-fd=3 3>backflow In case someone was puzzled: backflow should be "$3/backflow" on these last two lines. I didn't notice at first because there was already a fifo available in the cwd during testing.