]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - tests/make-replay-repo.sh
Merge branch 'modules' into develop
[svn2svn.git] / tests / make-replay-repo.sh
1 #!/bin/sh
2 # Use svn2svn.py to create a filtered repo with only /trunk history
3
4 PWD=$(pwd)
5 REPO="$PWD/_repo_replay"
6 REPOURL="file://$REPO"
7
8 # Clean-up
9 echo "Cleaning-up..."
10 rm -rf $REPO _wc_target
11
12 # Init repo
13 echo "Creating _repo_replay..."
14 svnadmin create $REPO
15 # Add pre-revprop-change hook script, which is required by svn2svn
16 cat > $REPO/hooks/pre-revprop-change < pre-revprop-change.example.sh
17 chmod 755 $REPO/hooks/pre-revprop-change
18 echo ""
19
20 ## svn2svn /
21 #../svn2svn.py -a -v file://$PWD/_repo_ref file://$PWD/_repo_replay
22
23 # svn2svn /trunk
24 svn mkdir -q -m "Add /trunk" $REPOURL/trunk
25 ../svn2svn.py -a -v file://$PWD/_repo_ref/trunk file://$PWD/_repo_replay/trunk