<s> import qisrc . svn <EOL> def test_commit_all_adds_new_subfolders ( svn_server , tmpdir ) : <EOL> foo_url = svn_server . create_repo ( "<STR_LIT:foo>" ) <EOL> work = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo = work . mkdir ( "<STR_LIT:foo>" ) <EOL> svn = qisrc . svn . Svn ( foo . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> foo . ensure ( "<STR_LIT>" , dir = True ) <EOL> foo . ensure ( "<STR_LIT>" ) <EOL> svn . commit_all ( "<STR_LIT>" ) <EOL> work2 = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo2 = work2 . mkdir ( "<STR_LIT>" ) <EOL> svn = qisrc . svn . Svn ( foo2 . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> assert foo2 . join ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) . check ( dir = True ) <EOL> assert foo2 . join ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) . check ( file = True ) <EOL> def test_commit_all_removes_removed_files ( svn_server , tmpdir ) : <EOL> foo_url = svn_server . create_repo ( "<STR_LIT:foo>" ) <EOL> svn_server . commit_file ( "<STR_LIT:foo>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> work = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo = work . mkdir ( "<STR_LIT:foo>" ) <EOL> svn = qisrc . svn . Svn ( foo . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> foo . join ( "<STR_LIT>" ) . remove ( ) <EOL> svn . commit_all ( "<STR_LIT>" ) <EOL> work2 = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo2 = work2 . mkdir ( "<STR_LIT>" ) <EOL> svn = qisrc . svn . Svn ( foo2 . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> assert not foo2 . join ( "<STR_LIT>" ) . check ( file = True ) <EOL> def test_files_with_space ( svn_server , tmpdir ) : <EOL> foo_url = svn_server . create_repo ( "<STR_LIT:foo>" ) <EOL> svn_server . commit_file ( "<STR_LIT:foo>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> work = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo = work . mkdir ( "<STR_LIT:foo>" ) <EOL> svn = qisrc . svn . Svn ( foo . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> foo . join ( "<STR_LIT>" ) . remove ( ) <EOL> svn . commit_all ( "<STR_LIT>" ) <EOL> def test_file_replaced_by_symlink ( svn_server , tmpdir ) : <EOL> foo_url = svn_server . create_repo ( "<STR_LIT:foo>" ) <EOL> svn_server . commit_file ( "<STR_LIT:foo>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> work = tmpdir . mkdir ( "<STR_LIT>" ) <EOL> foo = work . mkdir ( "<STR_LIT:foo>" ) <EOL> svn = qisrc . svn . Svn ( foo . strpath ) <EOL> svn . call ( "<STR_LIT>" , foo_url , "<STR_LIT:.>" ) <EOL> foo . join ( "<STR_LIT>" ) . remove ( ) <EOL> foo . ensure ( "<STR_LIT>" , file = True ) <EOL> foo . join ( "<STR_LIT>" ) . mksymlinkto ( "<STR_LIT>" ) <EOL> svn . commit_all ( "<STR_LIT>" ) </s>
