@echo off setlocal :: Creates a couple repositories to demonstrate problems with TortoiseSVN "apply :: patch" command :: :: Usage: call setup_repos.bat from a temp directory and it will create :: everything there for you. :: ::Create test repositories svnadmin create testrepo set CWD=%CD% :: create the working copy and set up repo content svn checkout file:///%CWD:\=/%/testrepo testrepo_wc cd testrepo_wc mkdir trunk mkdir branches mkdir trunk\proj mkdir trunk\proj\sub1 mkdir trunk\proj\sub1\sub2 call :FILE1 trunk flarbyflarb big^ ol' call :FILE2 trunk maroon five svn add trunk svn add branches svn commit -m "initial content" :: set up branches svn cp trunk branches\br1 svn cp trunk branches\br2 svn commit -m "branch for two changes" :: make some fixes which can be applied as a patch call :FILE1 branches\br1 mary little call :FILE2 branches\br1 black three explorer branches\br1 goto :END :FILE1 echo %2 > %1\proj\sub1\mary.txt echo had >> %1\proj\sub1\mary.txt echo a >> %1\proj\sub1\mary.txt echo %3 >> %1\proj\sub1\mary.txt echo lamb >> %1\proj\sub1\mary.txt echo whose fleece >> %1\proj\sub1\mary.txt echo was >> %1\proj\sub1\mary.txt echo white as snow >> %1\proj\sub1\mary.txt goto EOF :FILE2 echo baa baa > %1\proj\sub1\sub2\sheep.txt echo %2 sheep >> %1\proj\sub1\sub2\sheep.txt echo have you >> %1\proj\sub1\sub2\sheep.txt echo any wull? >> %1\proj\sub1\sub2\sheep.txt echo yes sir, >> %1\proj\sub1\sub2\sheep.txt echo yes sir, >> %1\proj\sub1\sub2\sheep.txt echo %3 >> %1\proj\sub1\sub2\sheep.txt echo bags >> %1\proj\sub1\sub2\sheep.txt echo full >> %1\proj\sub1\sub2\sheep.txt goto EOF :END endlocal echo on