Re: [PATCH 9/8] svn-fe: Test script for handling of dumps with --deltas
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 4, 2010, 17:29 UTC
- Message-ID
- <20101204172902.GA28299@burratino>
- In-Reply-To
- <20101120193016.GJ17823@burratino>
Jonathan Nieder wrote:
Show 18 quoted lines
> +++ 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<backflow |
> +GIT_DIR=$3 git fast-import --cat-blob-fd=3 3>backflowIn 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.