my6solutions

asp .net, the social web & other distractions

 

Running Apps

Disclaimer

I am in no way affiliated with Microsoft or Google. I am just another developer trying to make a difference. All opinions and observations are usually my own.

TortoiseSVN working directory names

Update: As Stefan pointed out, you will not need to do the following if you have VS2005 or above. As usual, if it ain't broke, don't touch it.

If you're using TortoiseSVN for version control and are thinking of integrating it with Visual Studio either through VisualSVN or AnkhSVN, you will need to change its working directories from .svn to _svn. This can be achieved from the TortoiseSVN settings.

If you have existing checkouts using .svn, there is still hope. You can execute a batch file containing the following to rename any existing checkouts that you may have from .svn to_svn. It will do this for all sub directories under the root directory of your checkout.

 

@echo off

call :recurse .

goto :eof

 

:recurse

for /d %%d in (*) do (

    pushd %%d

    attrib -H .svn >nul 2>nul

    ren .svn _svn >nul 2>nul

    attrib +H _svn >nul 2>nul

    call :recurse

    popd

)

goto :eof

 

What I do is create a file called renameSVN.cmd and place to file under an existing PATH. This way I can call the batch file from anywhere.

 

 

 

Bookmark and Share

Categories: Miscellaneous
Permalink | Comments (2) | Post RSSRSS comment feed

Comments

Stefan

Thursday, July 02, 2009 3:03 PM

Stefan

You only need to switch to _svn dirs instead of the default .svn ones if you're using VS.NET2003. Newer versions of Visual Studio don't have problems anymore with the .svn dirs.

Admin

Saturday, July 04, 2009 2:49 PM

Admin

Thanks for the information. I will update the post accordingly.