3 # Copyright (c) 2010 Steven Walter
6 test_description='git svn merge detection'
9 svn_ver="$(svn --version --quiet)"
12 skip_all="skipping git-svn test - SVN too old ($svn_ver)"
17 test_expect_success 'initialize source svn repo' '
18 svn_cmd mkdir -m x "$svnrepo"/trunk &&
19 svn_cmd mkdir -m x "$svnrepo"/branches &&
20 svn_cmd co "$svnrepo"/trunk "$SVN_TREE" &&
25 svn commit -m "initial commit" &&
26 svn cp -m branch "$svnrepo"/trunk "$svnrepo"/branches/branch1 &&
30 svn cp -m branch "$svnrepo"/trunk "$svnrepo"/branches/branch2 &&
31 svn switch "$svnrepo"/branches/branch1 &&
35 svn switch "$svnrepo"/trunk &&
36 svn merge "$svnrepo"/branches/branch1 &&
37 svn commit -m "merge" &&
38 svn switch "$svnrepo"/branches/branch1 &&
40 svn switch "$svnrepo"/branches/branch2 &&
41 svn merge "$svnrepo"/branches/branch1 &&
42 svn commit -m "merge branch1" &&
43 svn switch "$svnrepo"/trunk &&
44 svn merge "$svnrepo"/branches/branch2 &&
46 svn commit -m "merge branch2"
51 test_expect_success 'clone svn repo' '
52 git svn init -s "$svnrepo" &&
56 test_expect_success 'verify merge commit' 'git rev-parse HEAD^2'