I'm adding an existing site to SVN.
The files already exist on the webserver, and now identical copies (- configuration files) exist in the repository.
I want to convert the webserver directory into an SVN working copy, but when I run:
svn checkout http://path.to/svn/repo/httpdocs .
I get the error:
svn: Failed to add file '': object of the same name already exists
How do I tell SVN to just overwrite those files whose contents are the same?
Best Answer
svn checkout --force svn://repo website.dir
then
svn revert -R website.dir
Will check out on top of existing files in website.dir, but not overwrite them. Then the revert will overwrite them. This way you do not need to take the site down to complete it.