(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <'git svn property tests'>)} spids: [13] ) ] spids: [13] ) (C {(.)} {(./lib-git-svn.sh)}) (C {(mkdir)} {(import)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_crlf) op:Equal rhs:{(EmptyPart)} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_lf) op:Equal rhs:{(EmptyPart)} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_cr) op:Equal rhs:{(EmptyPart)} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_ne_crlf) op:Equal rhs:{(EmptyPart)} spids:[34])] spids: [34] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_ne_lf) op:Equal rhs:{(EmptyPart)} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_ne_cr) op:Equal rhs:{(EmptyPart)} spids:[38])] spids: [38] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_empty) op:Equal rhs:{(EmptyPart)} spids:[40])] spids: [40] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_empty_lf) op:Equal rhs:{(EmptyPart)} spids:[42])] spids: [42] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_empty_cr) op:Equal rhs:{(EmptyPart)} spids:[44])] spids: [44] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:a_empty_crlf) op:Equal rhs:{(EmptyPart)} spids:[46])] spids: [46] ) (C {(cd)} {(import)}) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_DGreat fd:16777215 arg_word:{(kw.c)} spids:[56]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('/* Somebody prematurely put a keyword into this file */\n') ('/* $Id$ */\n')} do_expansion: False here_end: EOF was_filled: T spids: [60] ) ] ) (SimpleCommand words: [ {(printf)} { (DQ (Hello) (Lit_Other '\\') (r) (Lit_Other '\\') (nWorld) (Lit_Other '\\') (r) (Lit_Other '\\') (n) ) } ] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(crlf)} spids:[80])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_crlf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(crlf)})]) left_token: <Left_CommandSub '$('> spids: [86 94] ) } spids: [85] ) ] spids: [85] ) (SimpleCommand words: [{(printf)} {(DQ (Hello) (Lit_Other '\\') (rWorld) (Lit_Other '\\') (r))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(cr)} spids:[107])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_cr) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(cr)})]) left_token: <Left_CommandSub '$('> spids: [113 121] ) } spids: [112] ) ] spids: [112] ) (SimpleCommand words: [{(printf)} {(DQ (Hello) (Lit_Other '\\') (nWorld) (Lit_Other '\\') (n))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(lf)} spids:[134])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_lf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(lf)})]) left_token: <Left_CommandSub '$('> spids: [140 148] ) } spids: [139] ) ] spids: [139] ) (SimpleCommand words: [{(printf)} {(DQ (Hello) (Lit_Other '\\') (r) (Lit_Other '\\') (nWorld))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(ne_crlf)} spids:[162])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_ne_crlf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(ne_crlf)})]) left_token: <Left_CommandSub '$('> spids: [168 176] ) } spids: [167] ) ] spids: [167] ) (SimpleCommand words: [{(printf)} {(DQ (Hello) (Lit_Other '\\') (nWorld))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(ne_lf)} spids:[187])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_ne_lf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(ne_lf)})]) left_token: <Left_CommandSub '$('> spids: [193 201] ) } spids: [192] ) ] spids: [192] ) (SimpleCommand words: [{(printf)} {(DQ (Hello) (Lit_Other '\\') (rWorld))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(ne_cr)} spids:[212])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_ne_cr) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(ne_cr)})]) left_token: <Left_CommandSub '$('> spids: [218 226] ) } spids: [217] ) ] spids: [217] ) (C {(touch)} {(empty)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_empty) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(-w)} {(empty)})]) left_token: <Left_CommandSub '$('> spids: [236 244] ) } spids: [235] ) ] spids: [235] ) (SimpleCommand words: [{(printf)} {(DQ (Lit_Other '\\') (n))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(empty_lf)} spids:[254])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_empty_lf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(git)} {(hash-object)} {(-w)} {(empty_lf)})] ) left_token: <Left_CommandSub '$('> spids: [260 268] ) } spids: [259] ) ] spids: [259] ) (SimpleCommand words: [{(printf)} {(DQ (Lit_Other '\\') (r))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(empty_cr)} spids:[278])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_empty_cr) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(git)} {(hash-object)} {(-w)} {(empty_cr)})] ) left_token: <Left_CommandSub '$('> spids: [284 292] ) } spids: [283] ) ] spids: [283] ) (SimpleCommand words: [{(printf)} {(DQ (Lit_Other '\\') (r) (Lit_Other '\\') (n))}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(empty_crlf)} spids:[304])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_empty_crlf) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(git)} {(hash-object)} {(-w)} {(empty_crlf)})] ) left_token: <Left_CommandSub '$('> spids: [310 318] ) } spids: [309] ) ] spids: [309] ) (SimpleCommand words: [ {(svn_cmd)} {(import)} {(--no-auto-props)} {(-m)} {(SQ <'import for git svn'>)} {(.)} {(DQ ($ VSub_Name '$svnrepo'))} ] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[340])] ) (C {(cd)} {(..)}) (C {(rm)} {(-rf)} {(import)}) (C {(test_expect_success)} {(SQ <'checkout working copy from svn'>)} {(SQ <'svn co "$svnrepo" test_wc'>)} ) (C {(test_expect_success)} {(SQ <'setup some commits to svn'>)} { (SQ <'\n'> <'\t(\n'> <'\t\tcd test_wc &&\n'> <'\t\techo Greetings >> kw.c &&\n'> <'\t\tpoke kw.c &&\n'> <'\t\tsvn_cmd commit -m "Not yet an Id" &&\n'> <'\t\techo Hello world >> kw.c &&\n'> <'\t\tpoke kw.c &&\n'> <'\t\tsvn_cmd commit -m "Modified file, but still not yet an Id" &&\n'> <'\t\tsvn_cmd propset svn:keywords Id kw.c &&\n'> <'\t\tpoke kw.c &&\n'> <'\t\tsvn_cmd commit -m "Propset Id"\n'> <'\t)\n'> ) } ) (C {(test_expect_success)} {(SQ <'initialize git svn'>)} {(SQ <'git svn init "$svnrepo"'>)}) (C {(test_expect_success)} {(SQ <'fetch revisions from svn'>)} {(SQ <'git svn fetch'>)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:name) op: Equal rhs: {(SQ <'test svn:keywords ignoring'>)} spids: [408] ) ] spids: [408] ) (C {(test_expect_success)} {(DQ ($ VSub_Name '$name'))} { (SQ <'git checkout -b mybranch remotes/git-svn &&\n'> <'\techo Hi again >> kw.c &&\n'> <'\tgit commit -a -m "test keywords ignoring" &&\n'> <'\tgit svn set-tree remotes/git-svn..mybranch &&\n'> <'\tgit pull . remotes/git-svn'> ) } ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:expect) op:Equal rhs:{(SQ <'/* $Id$ */'>)} spids:[430])] spids: [430] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:got) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(sed)} {(-ne)} {(2p)} {(kw.c)})]) left_token: <Left_CommandSub '$('> spids: [437 445] ) ) } spids: [435] ) ] spids: [435] ) (C {(test_expect_success)} {(SQ <'raw $Id$ found in kw.c'>)} {(DQ ("test '") ($ VSub_Name '$expect') ("' = '") ($ VSub_Name '$got') ("'"))} ) (C {(test_expect_success)} {(DQ ('propset CR on crlf files'))} { (SQ <'\n'> <'\t(\n'> <'\t\tcd test_wc &&\n'> <'\t\tsvn_cmd propset svn:eol-style CR empty &&\n'> <'\t\tsvn_cmd propset svn:eol-style CR crlf &&\n'> <'\t\tsvn_cmd propset svn:eol-style CR ne_crlf &&\n'> <'\t\tsvn_cmd commit -m "propset CR on crlf files"\n'> <'\t )\n'> ) } ) (C {(test_expect_success)} {(SQ <'fetch and pull latest from svn and checkout a new wc'>)} { (SQ <'git svn fetch &&\n'> <'\t git pull . remotes/git-svn &&\n'> <'\t svn_cmd co "$svnrepo" new_wc'> ) } ) (ForEach iter_name: i iter_words: [ {(crlf)} {(ne_crlf)} {(lf)} {(ne_lf)} {(cr)} {(ne_cr)} {(empty_cr)} {(empty_lf)} {(empty)} {(empty_crlf)} ] do_arg_iter: F body: (DoGroup children: [ (C {(test_expect_success)} {(DQ ('Comparing ') ($ VSub_Name '$i'))} {(DQ ('cmp ') ($ VSub_Name '$i') (' new_wc/') ($ VSub_Name '$i'))} ) ] spids: [522 539] ) spids: [501 16777215] ) (C {(cd)} {(test_wc)}) (SimpleCommand words: [{(printf)} {(SQ <'$Id$\\rHello\\rWorld\\r'>)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(cr)} spids:[554])] ) (SimpleCommand words: [{(printf)} {(SQ <'$Id$\\rHello\\rWorld'>)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(ne_cr)} spids:[565])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_cr) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(printf)} {(SQ <'$Id$\\r\\nHello\\r\\nWorld\\r\\n'>)}) (C {(git)} {(hash-object)} {(--stdin)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [571 585] ) } spids: [570] ) ] spids: [570] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:a_ne_cr) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(printf)} {(SQ <'$Id$\\r\\nHello\\r\\nWorld'>)}) (C {(git)} {(hash-object)} {(--stdin)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [589 603] ) } spids: [588] ) ] spids: [588] ) (C {(test_expect_success)} {(SQ <'Set CRLF on cr files'>)} { (SQ <'svn_cmd propset svn:eol-style CRLF cr &&\n'> <'\t svn_cmd propset svn:eol-style CRLF ne_cr &&\n'> <'\t svn_cmd propset svn:keywords Id cr &&\n'> <'\t svn_cmd propset svn:keywords Id ne_cr &&\n'> <'\t svn_cmd commit -m "propset CRLF on cr files"'> ) } ) (C {(cd)} {(..)}) (C {(test_expect_success)} {(SQ <'fetch and pull latest from svn'>)} {(SQ <'git svn fetch && git pull . remotes/git-svn'>)} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:b_cr) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(cr)})]) left_token: <Left_CommandSub '$('> spids: [641 647] ) ) } spids: [639] ) ] spids: [639] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:b_ne_cr) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(git)} {(hash-object)} {(ne_cr)})]) left_token: <Left_CommandSub '$('> spids: [652 658] ) ) } spids: [650] ) ] spids: [650] ) (C {(test_expect_success)} {(SQ <'CRLF + $Id$'>)} {(DQ ("test '") ($ VSub_Name '$a_cr') ("' = '") ($ VSub_Name '$b_cr') ("'"))} ) (C {(test_expect_success)} {(SQ <'CRLF + $Id$ (no newline)'>)} {(DQ ("test '") ($ VSub_Name '$a_ne_cr') ("' = '") ($ VSub_Name '$b_ne_cr') ("'"))} ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(show-ignore.expect)} spids:[693]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('\n') ('# /\n') ('/no-such-file*\n') ('\n') ('# /deeply/\n') ('/deeply/no-such-file*\n') ('\n') ('# /deeply/nested/\n') ('/deeply/nested/no-such-file*\n') ('\n') ('# /deeply/nested/directory/\n') ('/deeply/nested/directory/no-such-file*\n') } do_expansion: False here_end: EOF was_filled: T spids: [697] ) ] ) (C {(test_expect_success)} {(SQ <'test show-ignore'>)} { (DQ ('\n') ('\t(\n') ('\t\tcd test_wc &&\n') ('\t\tmkdir -p deeply/nested/directory &&\n') ('\t\ttouch deeply/nested/directory/.keep &&\n') ('\t\tsvn_cmd add deeply &&\n') ('\t\tsvn_cmd up &&\n') ("\t\tsvn_cmd propset -R svn:ignore '\n") ('no-such-file*\n') ("' .\n") ("\t\tsvn_cmd commit -m 'propset svn:ignore'\n") ('\t) &&\n') ('\tgit svn show-ignore > show-ignore.got &&\n') ('\tcmp show-ignore.expect show-ignore.got\n') ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(create-ignore.expect)} spids:[728]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('/no-such-file*\n')} do_expansion: False here_end: EOF was_filled: T spids: [731] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(create-ignore-index.expect)} spids: [738] ) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0\t.gitignore\n') ('100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0\tdeeply/.gitignore\n') ('100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0\tdeeply/nested/.gitignore\n') ( '100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0\tdeeply/nested/directory/.gitignore\n' ) } do_expansion: False here_end: EOF was_filled: T spids: [741] ) ] ) (C {(test_expect_success)} {(SQ <'test create-ignore'>)} { (DQ ('\n') ('\tgit svn fetch && git pull . remotes/git-svn &&\n') ('\tgit svn create-ignore &&\n') ('\tcmp ./.gitignore create-ignore.expect &&\n') ('\tcmp ./deeply/.gitignore create-ignore.expect &&\n') ('\tcmp ./deeply/nested/.gitignore create-ignore.expect &&\n') ('\tcmp ./deeply/nested/directory/.gitignore create-ignore.expect &&\n') ('\tgit ls-files -s | grep gitignore | cmp - create-ignore-index.expect\n') ('\t') ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(prop.expect)} spids:[767]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('\n') ('no-such-file*\n') ('\n')} do_expansion: False here_end: EOF was_filled: T spids: [770] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(prop2.expect)} spids:[776]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('8\n')} do_expansion: False here_end: EOF was_filled: T spids: [779] ) ] ) (C {(test_expect_success)} {(SQ <'test propget'>)} { (DQ ('\n') ('\tgit svn propget svn:ignore . | cmp - prop.expect &&\n') ('\tcd deeply &&\n') ('\tgit svn propget svn:ignore . | cmp - ../prop.expect &&\n') ('\tgit svn propget svn:entry:committed-rev nested/directory/.keep ') ('\t | cmp - ../prop2.expect &&\n') ('\tgit svn propget svn:ignore .. | cmp - ../prop.expect &&\n') ('\tgit svn propget svn:ignore nested/ | cmp - ../prop.expect &&\n') ('\tgit svn propget svn:ignore ./nested | cmp - ../prop.expect &&\n') ('\tgit svn propget svn:ignore .././deeply/nested | cmp - ../prop.expect\n') ('\t') ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(prop.expect)} spids:[817]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {("Properties on '.':\n") (' svn:entry:committed-date\n') (' svn:entry:committed-rev\n') (' svn:entry:last-author\n') (' svn:entry:uuid\n') (' svn:ignore\n') } do_expansion: False here_end: EOF was_filled: T spids: [820] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(prop2.expect)} spids:[826]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {("Properties on 'nested/directory/.keep':\n") (' svn:entry:committed-date\n') (' svn:entry:committed-rev\n') (' svn:entry:last-author\n') (' svn:entry:uuid\n') } do_expansion: False here_end: EOF was_filled: T spids: [829] ) ] ) (C {(test_expect_success)} {(SQ <'test proplist'>)} { (DQ ('\n') ('\tgit svn proplist . | cmp - prop.expect &&\n') ('\tgit svn proplist nested/directory/.keep | cmp - prop2.expect\n') ('\t') ) } ) (C {(test_done)}) ] )