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

StackOverflow https://stackoverflow.com/questions/18011326

  •  04-06-2022
  •  | 
  •  

Domanda

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?

È stato utile?

Soluzione 2

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

Altri suggerimenti

Since SVN Import doesn't overwrite, I did the following:

1) Deleted the outdated files from the SVN Repository using SVN Manager.

2) Imported the latest files into the repository.

3) Checked Out the files back into the folder with the latest files.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top