I'm pulling my hair out on this one.
I have a site which is version controlled using Subversion. I use aptana (eclipse, subclipse) to do the svn. I have been checking in and out files, updating etc and everything is fine. However the system we have been building has been adding its own files and folders.
When I try to commit these, it tells me <path>
is not a working copy. If I try to do a cleanup then it gives the same error. I found I can manually add each file to version control but this throws the same error. Doing an update doesn't help, refreshing the workspace does not do anything either. Cleanup seems to die after the error and then the directory is locked.
I know you're supposed to add files using SVN, but how on earth do you work with generated files? How do I get around this "<folder>
is not a working copy directory" error? How do I get Subversion to just look at the files and add them to its repository?
If you want the generated files to be added to SVN, use svn add
to recursively add them - this will make sure that all directories are part of the working copy, and all files and directories are added to SVN, and will be committed as part of the next svn commit
.
However, often generated files and folders should not be added to SVN, since they are generated from the source files as part of a build. In this case, you should mark the with svn:ignore so that they are not part of the working copy.