Reusing Tools From Subversion Controlled Directories

Sometimes I want to take a tool from one project that is under subversion and use it in another. The problem is with the existing .svn directories. Because the files are already in one repository, copying directly from there to another project will cause conflicts in the other repository.

There are quick and easy ways to solve this in both Windows and Linux. To get around this in Windows copy the directory to a temporary folder and use Windows find to search the directory for “.svn” and delete all the directories it finds. From there just move the folder to the new project and add it to source control.

On Linux it is even easier. Copy the folder to a temporar location and run “find . -type d -name .svn -exec rm -rf {}\;” . This will delete all .svn directories. Then move the tool directory to your new project and add it to source control.

This entry was posted in .NET, AgileBCS, PHP, Programming and tagged , , , . Bookmark the permalink.

Leave a Reply