tags:

views:

84

answers:

6
svn add guess_language/
svn: warning: 'guess_language' is already under version control

Why is this? When I downloaded it, it was under SVN. (I downloaded it from SVN) How do I release that svn...so that I can turn it into a regular directory?

+3  A: 

Remove the .svn directory inside guess_language/ and it's parent (if that also came from another SVN repository). This should allow you to add it to another SVN repository.

This also must be done recursively through guess_language's children. A command which can do this for you (depending on your Linux environment) is:

find . -name '.svn' -type d -exec rm -rf {} \;

(You probably shouldn't just take that for granted, test it with a non-deleting version, i.e find . -name '.svn' -type d and check the only directories listed are the ones you want to remove.)

Grundlefleck
@Gordon: it's a good point, but I didn't consider it because he used linux and unix tags in his question. Your comment should do, I reckon :)
Grundlefleck
@Gordon: From the categories of the post, it is clear to me that @alex is not using windows. ;)
jachguate
A: 

Inside the guess_language directory there will be a hidden directory called .svn. This is how SVN knows that the directory is under version control. Delete that directory and you will then be able to add it to your SVN repository. You will have to do this for every directory, as each directory will have its own .svn directory.

(As an aside, if you look at the contents of a file called entries inside that directory, you can see the url of the SVN repository that the directory originally belonged to)

adrianbanks
+2  A: 

you can force it to be added to your repository. Use:

svn add --force [folder]
ghills
I didn't know that. Thanks.
Richard Pennington
This looks cleaner than the suggestion I made to delete the .svn folder. But where will svn get the information on which repository to add it to?
Grundlefleck
A: 

Nuke all the .svn directories.

cd guess_language
find . -name .svn | xargs rm -fr
Richard Pennington
+1  A: 

If you want a "copy" of the directory out of version control, use svn export. The exported directory will contain all the under version control contents of the original one, but will be a "regular directory".

Best regards.

jachguate
A: 

As the others said, remove the .svn directories to make subversion forget that it's a working copy checkout out from some repository. In the future you can svn export instead of svn checkout to download the files from svn without creating a working copy from them.

Geoff Reedy