How to remove .svn subfolders in a Subversion project
Visits: 4331
Thursday, April 09, 2009



Framework 3.5

Subversion is a version control system used to maintain current and historical versions of file such source code or documentation. Completely open-source, is used on many open source projects of the community.

Using client tools like TortoiseSVN or VisualSVN, you can integrate Subversion with Windows Explorer or Visual Studio IDE.

But what when you don't want to use SVN for a specified folder on your pc? There isn't a "Delete SVN from this folder" command, so we need to create something, a batch file for example, to do it.

Searching through the web, you can find many solutions to delete all .svn folders and my personal is RemoveSvnFolders. This simple console application is able to delete all folders recursively present in your root SVN folder.
The executable accepts 2 parameters: the folder path and an option indicates if you want to delete recursively or not.

Example:
RemoveSvnFolder.exe "c:\mysvnfolder-root" /r

This Visual Studio project is contained into a ZofM.Utility solution I will try to update in next months.

Download Download only the executable RemoveSvnFolders.exe
Download Download source of ZofM.Utility Visual Studio Solution
(RemoveSvnFolders inside like a project)



Comments


Grande blog! Se vi piace, tornate e la mia visita: http://albumdeestampillas.blogspot.com Grazie, Pablo dall'Argentina
Written by Pablo (yo) - Thursday, October 22, 2009 at 4:54 AM

I had to clone a ASP.NET MVC project since it had to be "skinned" according to customer's specifications. Instead of creating a new branch, I decided to "copy" the project and create a new solution. Your tool was godsend since I could remove all the .svn directories and add the new solution to SVN easily. Thank you very much for sharing this wonderful tool!!
Written by Indyfromoz - Thursday, November 12, 2009 at 9:11 PM



Post new comment

Author:  
E-mail:
Site:
Remember my information:
Message:
Code verification: Password verification

 

-- Comment preview --


Versione italiana Versione italiana

CATEGORIES

Ajax (2)
ASP.NET (11)
C# Code (4)
IIS (1)
Silverlight (1)
Sql Server 2000 (1)
Varie (4)
Visual Studio (4)

ARCHIVE

April 2009 (1)
May 2008 (1)
April 2008 (1)
January 2008 (4)
December 2007 (1)
May 2007 (1)
February 2007 (1)
December 2006 (3)
October 2006 (1)
September 2006 (3)
August 2006 (1)
June 2006 (1)

ABOUT ME [curriculum]

Curriculum ZofM

CREDITS