简体   繁体   中英

SVN: Cannot mix repository and working copy sources error

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.

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

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

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.

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.

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.

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM