]>
Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - tests/t1200-replay-beforecommit.sh
3 test_description
='Use svnreplay along with --pre-commit to create a modified filtered repo with only /trunk/Module2/ProjectB history
8 author
='Tony Duckles <tony@nynim.org>'
11 SVNREPLAY
="../svnreplay.py"
12 PWD
=${TEST_DIRECTORY:-.}
13 PWDURL
=$(echo "file://$PWD" | sed 's/\ /%20/g')
14 REPONAME
="_repo_t1200"
16 REPOURL
=$(echo "file://$REPO" | sed 's/\ /%20/g')
18 OFFSET
="/trunk/Module2/ProjectB"
25 "init repo $REPONAME" \
26 "init_replay_repo \"$REPO\""
29 "svn mkdir $REPONAME/trunk" \
30 "svn mkdir -q -m \"Add /trunk\" $REPOURL/trunk"
32 "svn mkdir $REPONAME$OFFSET" \
33 "svn mkdir -q --parents -m \"Add $OFFSET\" $REPOURL$OFFSET"
36 "svnreplay _repo_ref$OFFSET $REPONAME$OFFSET" \
37 "$SVNREPLAY -av --pre-commit=\"$PWD/t1200/before-commit.sh\" --wc \"$WC\" \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
40 "svnreplay _repo_ref$OFFSET $REPONAME$OFFSET (verify-all)" \
41 "$SVNREPLAY -avcX --pre-commit=\"$PWD/t1200/before-commit.sh\" --wc \"$WC\" \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
44 "diff-repo _repo_ref$OFFSET $REPONAME$OFFSET" \
45 "./diff-repo.sh \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
49 "rm -rf \"$REPO\" \"$WC\""