They are specially annoying when I need to upload to the server a web solution.
Is there a way of configuring SVN to create the _svn folders outside my working directory
We use CruiseControl with robocopy in order to create a clean copy of your repository.
<exec>
<executable>C:\Archivos de programa\Windows Resource Kits\Tools\robocopy.exe</executable>
<buildArgs>E:\CruiseControl\yourproject\Code\trunk\ E:\wwwroot\yourproject *.* /E /XX /XA:H /XO /NDL /NC /NS /NP /XF "*.cache" "*.designer.cs" "*.sln" "*.msbuild" "*.csproj" "*.PDB" "*.user" "*.designer" /XD .svn App_Code obj Properties</buildArgs>
<buildTimeoutSeconds>60</buildTimeoutSeconds>
<successExitCodes>1,0</successExitCodes>
</exec>
/XF and /XD arguments excludes the files and the directories you don't want to upload to production.
You can find more info about robocopy here.
If you want to delete all sub folders named .svn in windows then create batch file with this content:
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *.svn') do (
rd /s /q "%%i"
)
save it in a file del_All_Dot_SVN_Folders.cmd . Run it. Your done.
Thanks to http://www.axelscript.com/2008/03/11/delete-all-svn-files-in-windows/
Remember the above code has .svn whereas the code in the link has only *svn so its better to have the .svn to not accidentally have undesired effect.
In TortoiseSVN, you can right click on the working copy and drag it somewhere else. And when the popup menu appears, select "SVN Export Here". (This requires that all code in the working copy was checked in since the export will be from trunk and not from the working copy)
See these resources for details: