@echo off @prompt $P$S$G @echo WorkDir: %WORKDIR% @echo PYTHON: %PYTHON% @echo Username: %USERNAME% setlocal set PYTHONPATH=%WORKDIR%\Source;%WORKDIR%\Examples\Client set PYSVN=%PYTHON% %WORKDIR%\Examples\Client\svn_cmd.py --pysvn-testing 01.01.00 --config-dir b:\configdir echo Info: PYSVN CMD %PYSVN% call :cmd_shell mkdir testroot-01 call :cmd_shell subst b: %CD%\testroot-01 call :cmd_shell cd /d b:\ call :cmd_shell svnadmin create b:\repos echo Info: Test - mkdir call :cmd_pysvn mkdir file:///b:/repos/trunk -m "test-01 add trunk" call :cmd_pysvn mkdir file:///b:/repos/trunk/test -m "test-01 add test" echo Info: Test - ls call :cmd_pysvn ls file:///b:/repos -v -R echo Info: Test - checkout call :cmd_pysvn checkout file:///b:/repos/trunk b:\wc1 call :cmd_shell dir b:\wc1 /s /b /a-h call :cmd_shell cd /d b:\wc1\test echo Info: Test - add call :cmd_createfile file1.txt test add file 1 call :cmd_createfile file2.txt test add file 2 call :cmd_createfile file3.txt test add file 3 call :cmd_createfile file4.txt test add file 4 call :cmd_createfile file5.txt test add file 5 call :cmd_shell mkdir folder1 call :cmd_createfile folder1\file7.txt test add file 7 call :cmd_shell mkdir folder1\folder2 call :cmd_createfile folder1\folder2\file8.txt test add file 8 call :cmd_shell mkdir folder3 call :cmd_createfile folder3\file9.txt test add file 9 call :cmd_shell mkdir folder3\folder4 call :cmd_createfile folder3\folder4\file10.txt test add file 10 call :cmd_pysvn add file1.txt call :cmd_pysvn add file2.txt call :cmd_pysvn add file3.txt call :cmd_pysvn add file4.txt call :cmd_pysvn add --force file5.txt call :cmd_pysvn add folder1 call :cmd_pysvn add --non-recursive folder3 call :cmd_pysvn checkin -m "commit added files" echo Info: Test - update - get a new wc that will update call :cmd_pysvn checkout file:///b:/repos/trunk b:\wc2 echo Info: Test - - checkin a mod from wc1 call :cmd_appendfile b:\wc1\test\file1.txt line 2 call :cmd_pysvn checkin -m "commit modified file" call :cmd_pysvn checkin -m "commit modified file" echo Info: Test - update call :cmd_pysvn update b:\wc2 echo Info: Test - the rest in lexical order echo Info: Test - annotate call :cmd_pysvn annotate b:\wc2\test\file1.txt echo Info: Test - cat call :cmd_pysvn cat -r head file:///b:/repos/trunk/test/file1.txt echo Info: Test - cleanup echo Info: Test - copy call :cmd_pysvn mkdir file:///b:/repos/tags -m "test-01 add tags" call :cmd_createfile msg.tmp tag the trunk call :cmd_pysvn copy file:///b:/repos/trunk file:///b:/repos/tags/version1 %FILENAME% goto :eof :cmd_appendfile set FILENAME=%1 shift echo Info: Append File %FILENAME% - %1 %2 %3 %4 %5 %6 %7 %8 %9 call :cmd__echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >>%FILENAME% goto :eof :cmd__echo echo %* goto :eof