3 # Copyright (c) 2010 Steven Walter
6 test_description
='git svn mergeinfo propagation'
10 say
'define NO_SVN_TESTS to skip git svn tests'
12 test_expect_success
'initialize source svn repo' '
13 svn_cmd mkdir -m x "$svnrepo"/trunk &&
14 svn_cmd co "$svnrepo"/trunk "$SVN_TREE" &&
19 svn_cmd commit -m "initial commit"
24 test_expect_success
'clone svn repo' '
25 git svn init "$svnrepo"/trunk &&
29 test_expect_success
'change svn:mergeinfo' '
32 git commit -m "bar" &&
33 git svn dcommit --mergeinfo="/branches/foo:1-10"
36 test_expect_success
'verify svn:mergeinfo' '
37 mergeinfo=$(svn_cmd propget svn:mergeinfo "$svnrepo"/trunk)
38 test "$mergeinfo" = "/branches/foo:1-10"
41 test_expect_success
'change svn:mergeinfo multiline' '
44 git commit -m "baz" &&
45 git svn dcommit --mergeinfo="/branches/bar:1-10 /branches/other:3-5,8,10-11"
48 test_expect_success
'verify svn:mergeinfo multiline' '
49 mergeinfo=$(svn_cmd propget svn:mergeinfo "$svnrepo"/trunk)
50 test "$mergeinfo" = "/branches/bar:1-10
51 /branches/other:3-5,8,10-11"