Tortoise SVN hidden _svn folders

后端 未结 9 1130
半阙折子戏
半阙折子戏 2021-02-05 15:51

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

相关标签:
9条回答
  • 2021-02-05 16:30

    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.

    0 讨论(0)
  • 2021-02-05 16:30

    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.

    0 讨论(0)
  • 2021-02-05 16:42

    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:

    • http://tortoisesvn.net/most-forgotten-feature (about the right click+drag context menu)
    • http://tortoisesvn.net/node/343 (About unversioning an svn working copy). If you use this method, I think that your unversioned files will remain in the folder but I haven't tried it...
    0 讨论(0)
提交回复
热议问题