@echo off setlocal :: Creates a couple repositories to demonstrate problems with TortoiseSVN "set :: explicit revision" dialog during tagging. :: :: Usage: call setup_repos.bat from a temp directory and it will create :: everything there for you. :: ::Create test repositories svnadmin create testrepo svnadmin create externrepo set CWD=%CD% :: create content for externals working copy svn checkout file:///%CWD:\=/%/externrepo externrepo_wc cd externrepo_wc mkdir trunk mkdir trunk\sub1 mkdir trunk\sub1\sub2 mkdir trunk\sub1\sub2\sub3 echo foobar > trunk\sub1\sub2\sub3\testfile.txt svn add trunk svn commit -m "initial content" svn mv trunk\sub1\sub2 trunk\subdir svn rm trunk\sub1 svn commit -m "move testfile to cause problems in externals explicit revs" cd .. :: create the working copy for primary use and set up repo content svn checkout file:///%CWD:\=/%/testrepo testrepo_wc cd testrepo_wc mkdir trunk mkdir tags mkdir trunk\subdir mkdir trunk\externals echo flarbyflarb > trunk\subdir\testfile.txt svn add trunk svn add tags svn commit -m "initial content" :: set up externals on primary WC echo ../subdir my_subdir > externals_def.txt echo ^^/../externrepo/trunk/subdir/sub3 other_subdir >> externals_def.txt svn propset --file externals_def.txt svn:externals trunk\externals svn commit -m "add externals definitions" svn update explorer . :END endlocal echo on