(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description spids:[21]) op: Equal rhs: {(SQ <'git svn merge detection'>)} spids: [21] ) ] spids: [21] ) (C {(.)} {(./lib-git-svn.sh)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:svn_ver spids:[31]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(svn)} {(--version)} {(--quiet)})] ) left_token: <Left_CommandSub '$('> spids: [33 39] ) ) } spids: [31] ) ] spids: [31] ) (command.Case to_match: {($ VSub_Name '$svn_ver')} arms: [ (case_arm pat_list: [ {(0.) (Lit_Other '*')} {(1.) (Lit_Other '[') (0-4) (Lit_Other ']') (.) (Lit_Other '*')} ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:skip_all spids:[62]) op: Equal rhs: {(DQ ('skipping git-svn test - SVN too old (') ($ VSub_Name '$svn_ver') (')'))} spids: [62] ) ] spids: [62] ) (C {(test_done)}) ] spids: [48 59 73 16777215] ) ] spids: [42 46 75] ) (C {(test_expect_success)} {(SQ <'initialize source svn repo'>)} { (SQ <'\n'> <'\tsvn_cmd mkdir -m x "$svnrepo"/trunk &&\n'> <'\tsvn_cmd mkdir -m x "$svnrepo"/branches &&\n'> <'\tsvn_cmd co "$svnrepo"/trunk "$SVN_TREE" &&\n'> <'\t(\n'> <'\t\tcd "$SVN_TREE" &&\n'> <'\t\ttouch foo &&\n'> <'\t\tsvn_cmd add foo &&\n'> <'\t\tsvn_cmd commit -m "initial commit" &&\n'> <'\t\tsvn_cmd cp -m branch "$svnrepo"/trunk "$svnrepo"/branches/branch1 &&\n'> <'\t\tsvn_cmd switch "$svnrepo"/branches/branch1 &&\n'> <'\t\ttouch bar &&\n'> <'\t\tsvn_cmd add bar &&\n'> <'\t\tsvn_cmd commit -m branch1 &&\n'> <'\t\tsvn_cmd cp -m branch "$svnrepo"/branches/branch1 "$svnrepo"/branches/branch2 &&\n'> <'\t\tsvn_cmd switch "$svnrepo"/branches/branch2 &&\n'> <'\t\ttouch baz &&\n'> <'\t\tsvn_cmd add baz &&\n'> <'\t\tsvn_cmd commit -m branch2 &&\n'> <'\t\tsvn_cmd switch "$svnrepo"/trunk &&\n'> <'\t\tsvn_cmd merge --reintegrate "$svnrepo"/branches/branch2 &&\n'> <'\t\tsvn_cmd commit -m "merge branch2"\n'> <'\t) &&\n'> <'\trm -rf "$SVN_TREE"\n'> ) } ) (C {(test_expect_success)} {(SQ <'clone svn repo'>)} {(SQ <'\n'> <'\tgit svn init -s "$svnrepo" &&\n'> <'\tgit svn fetch\n'>)} ) (C {(test_expect_success)} {(SQ <'verify merge commit'>)} { (SQ <'x=$(git rev-parse HEAD^2) &&\n'> <'\ty=$(git rev-parse origin/branch2) &&\n'> <'\ttest "x$x" = "x$y"\n'> ) } ) (C {(test_done)}) ] )