diff options
author | Sam Vilain <sam.vilain@catalyst.net.nz> | 2009-10-20 04:41:59 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-27 07:45:41 +0100 |
commit | cb74a0ca61278b97d9e12af9ed9f7040ab13f507 (patch) | |
tree | fdebbd30aa54f763869261efa9c72d93fb16ed3a /t/t9150/make-svk-dump | |
parent | git svn: fix fetch where glob is on the top-level URL (diff) | |
download | git-cb74a0ca61278b97d9e12af9ed9f7040ab13f507.tar.xz git-cb74a0ca61278b97d9e12af9ed9f7040ab13f507.zip |
git-svn: add test data for SVK merge, with script.
Dump generated with SVK 2.0.2 and SVN 1.5.1 (on lenny amd64).
Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9150/make-svk-dump')
-rw-r--r-- | t/t9150/make-svk-dump | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/t/t9150/make-svk-dump b/t/t9150/make-svk-dump new file mode 100644 index 0000000000..2242f14ebe --- /dev/null +++ b/t/t9150/make-svk-dump @@ -0,0 +1,57 @@ +#!/bin/sh +# +# this script sets up a Subversion repository for Makefile in the +# first ever git merge, as if it were done with svk. +# + +set -e + +svk depotmap foo ~/.svk/foo +svk co /foo/ foo +cd foo +mkdir trunk +mkdir branches +svk add trunk branches +svk commit -m "Setup trunk and branches" +cd trunk + +git cat-file blob 6683463e:Makefile > Makefile +svk add Makefile + +svk commit -m "ancestor" +cd .. +svk cp trunk branches/left + +svk commit -m "make left branch" +cd branches/left/ + +git cat-file blob 5873b67e:Makefile > Makefile +svk commit -m "left update 1" + +cd ../../trunk +git cat-file blob 75118b13:Makefile > Makefile +svk commit -m "trunk update" + +cd ../branches/left +git cat-file blob b5039db6:Makefile > Makefile +svk commit -m "left update 2" + +cd ../../trunk +svk sm /foo/branches/left +# in theory we could delete the "left" branch here, but it's not +# required so don't do it, in case people start getting ideas ;) +svk commit -m "merge branch 'left' into 'trunk'" + +git cat-file blob b51ad431:Makefile > Makefile + +svk diff Makefile && echo "Hey! No differences, magic" + +cd ../.. + +svnadmin dump ~/.svk/foo > svk-merge.dump + +svk co -d foo +rm -rf foo +svk depotmap -d /foo/ +rm -rf ~/.svk/foo + |