svnvisualsvn

Import a directory with files and force-overwrite even if the directory already exists


I need to import a folder (say Project) with files into SVN even though the folder already exists on the server with the files.

Note : I have set up my repository as write-through proxy, so if I checkout the folder, do the changes and commit back, I get a "working copy out of date" error.

Is there any command-line tool to do this? Or any other ideas?


Solution

  • Read svn help import and use it. If you task really is

    Add unversion tree from custom location into existing repository

    svn import /PATH/TO/PROJECT protocol://URL/IN/REPOSITORY

    will add as result Project as child to URL/IN/REPOSITORY

    Just to note: import will appear as commit in repository