I need to copy the source from a branch myproduct1/mymodule1/tags/AA.BB.CC.DD
to myproduct1/mymodule1/branches/DefectXXX
.
To do this, I ran following SVN command and got the svn: E200007: Cannot mix repository and working copy sources
message.
C:\Program Files\SlikSvn\bin>svn cp -m 'Defect XXX' http://myserver/svn/myproduct1/mymodule1/tags/AA.BB.CC.DD http://myserver/svn/myproduct1/mymodule1/branches/DefectXXX
How can copy the code from one branch to another on the server?
It turned out that the quotes were the cause of the problem.
This one works:
C:\Program Files\SlikSvn\bin>svn cp -m "Defect XXX" http://myserver/svn/myproduct1/mymodule1/tags/AA.BB.CC.DD http://myserver/svn/myproduct1/mymodule1/branches/DefectXXX
如果源或目标网址中有空格,请在网址两边加上双引号(“)。
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.