3 # Copyright (c) 2010 Steven Walter
6 test_description='git svn merge detection'
9 test_expect_success 'initialize source svn repo' '
10 svn_cmd mkdir -m x "$svnrepo"/trunk &&
11 svn_cmd mkdir -m x "$svnrepo"/branches &&
12 svn_cmd co "$svnrepo"/trunk "$SVN_TREE" &&
17 svn commit -m "initial commit" &&
18 svn cp -m branch "$svnrepo"/trunk "$svnrepo"/branches/branch1 &&
22 svn cp -m branch "$svnrepo"/trunk "$svnrepo"/branches/branch2 &&
23 svn switch "$svnrepo"/branches/branch1 &&
27 svn switch "$svnrepo"/trunk &&
28 svn merge "$svnrepo"/branches/branch1 &&
29 svn commit -m "merge" &&
30 svn switch "$svnrepo"/branches/branch1 &&
32 svn switch "$svnrepo"/branches/branch2 &&
33 svn merge "$svnrepo"/branches/branch1 &&
34 svn commit -m "merge branch1" &&
35 svn switch "$svnrepo"/trunk &&
36 svn merge "$svnrepo"/branches/branch2 &&
38 svn commit -m "merge branch2"
43 test_expect_success 'clone svn repo' '
44 git svn init -s "$svnrepo" &&
48 test_expect_success 'verify merge commit' 'git rev-parse HEAD^2'