tags:

views:

1261

answers:

4

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.

+1  A: 

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.

gommo
to be honest I'm not sure, but if I remove it I get svn: '/svn/someproject/!svn/bc/23/tags' path not found
kristian nissen
found the problem, tags folder created inside trunk... damn
kristian nissen
A: 

Try

.... -m "adding externals"

I think you need a space after -m (make sure the tags directory exists)

Or execute the command on the server

svn copy file:///svn/someproject/trunk file:///svn/someproject/tags/uteeni -m "adding externals"

+1  A: 

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.

Viking
A: 

thank you so much, removal of "\" fixed the issue. Here is my command which worked:

svn copy from_url to_url -m "my comments for tag"

Srinivas Banda