Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN: Cannot mix repository and working copy sources error

Tags:

svn

When I run the following command

svn copy http://host/svn/someproject/trunk \ http://host/svn/someproject/tags/uteeni -m"adding externals"

I get a svn:

Cannot mix repository and working copy sources error

reply, what am I doing wrong? The tags folder has been added to the project and the trunk as well.

like image 438
kristian nissen Avatar asked Jun 09 '09 10:06

kristian nissen


4 Answers

Removal of "\" fixed the issue. Here is my command which worked:

svn copy from_url to_url -m "my comments for tag"
like image 139
Srinivas Banda Avatar answered Oct 13 '22 21:10

Srinivas Banda


It happens when paths are incorrect. Also helps to use //server:8080/... instead of //server/... if using http: And '\' is not needed if you type command in 1 line.

like image 41
Viking Avatar answered Oct 13 '22 21:10

Viking


I have also seen this problem when I've pasted the command from MS Word. Somehow I believe Word changed the formatting of some of the characters in the text. Retyping an identical command from scratch solved this problem.

like image 3
Dave Collins Avatar answered Oct 13 '22 21:10

Dave Collins


Is that backslash supposed to be in your question?

Otherwise it's probably to do with your svn client being a different version that your server. I've seen that fail with a similar error message before.

like image 2
Colin Goudie Avatar answered Oct 13 '22 20:10

Colin Goudie