I downloaded some source files on a Mac that were previously part of some working copy on the authors computer, I need to use these files in another repository but the SVN client "Versions" for Mac is picking up on the data from this old repository. I can't find the ".SVN" folder anywhere... any idea on how to "cleanse" these files so I can commit them to my repository?
The .svn folder is just a hidden directory which will appear in every (or at least most) of the directories in your source tree.
To remove all of them, you can open up Terminal, navigate to your source directory, and then use the following line (found here):
find . -name ".svn" -type d -exec rm -rf {} \;
The .svn
folder can sometimes be named _svn
. You can try looking for those folders and removing them.
Also, if your Subversion client (Versions) sees the folder as a working copy, you can try to perform SVN export from the folder to itself. It should clean the SVN meta-data.
As an indirect answer, I would highly recommend the Finder replacement shell PathFinder to any developers on Macs. It's useful for many reasons, the relevant one to this post being the ability to show hidden files/folders by default (which I always keep on). I've done this exact thing before -- simply find all ".svn" folders in your root folder using PathFinder and nuke them -- much safer than mass deleting in terminal (at least for some of us :)
[No, I have no relation to the company, I'm merely a happy customer.]