Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Mac - Stripping files of SVN meta data?

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?

like image 300
M. Ryan Avatar asked Dec 06 '22 04:12

M. Ryan


2 Answers

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 {} \;
like image 69
e.James Avatar answered Dec 11 '22 10:12

e.James


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.

like image 25
Eli Acherkan Avatar answered Dec 11 '22 11:12

Eli Acherkan