[英]How can I solve svn error: “E200007: Cannot mix repository and working copy sources”
I looked here for this issue, and none of the solutions pertain to me. 我在这里看了这个问题,没有一个解决方案适合我。 The issue reported by other folks had a backslash in their command line, which I do NOT have.
其他人报告的问题在他们的命令行中有一个反斜杠,我没有。 In my case, I'm trying to make a branch off a branch, so I did this:
在我的情况下,我正试图在分支上建立分支,所以我这样做:
- Existing branch: https://mysvn.repo.com/project/branch
- Created https://mysvn.repo.com/project/branch/private_branches folder in TurtoiseSVN explorer
- Tried svn cp -m "My private branch" https://mysvn.repo.com/project/branch https://mysvn.repo.com/project/branch/private_branches/my_private_branch
I get error in posts's title. 我在帖子的标题中收到错误。 Any pointers please?
有什么指针吗?
The command line is not seeing this as two URL's. 命令行没有将此视为两个URL。 Perhaps you have space in the URL, in which case you should encode that as %20 instead of entering a space?
也许你在URL中有空格,在这种情况下你应该将其编码为%20而不是输入空格? Here is an example I just did using same syntax as you:
这是一个我刚才使用相同语法的例子:
$ svn cp -m "Test branch" http://oneeight.tigris.org/svn/oneeight/trunk http://oneeight.tigris.org/svn/oneeight/branches/mptest1
Committed revision 24.
Had the same problem when issuing the SVN command from a script via a variable: 通过变量从脚本发出SVN命令时遇到同样的问题:
cmd=svn cp [...]
$cmd
The workaround I found is to issue the command directly from the script: 我找到的解决方法是直接从脚本发出命令:
svn cp [...]
Perhaps this works for you/others as well. 也许这适合你/其他人。
I had the same problem and the solution was avoid using spaces in the message. 我有同样的问题,解决方案是避免在消息中使用空格。 In my case it was because I was running the command on a grid and it gets wrapped automatically by a script that has some problems with spaces and double quotes.
在我的情况下,这是因为我在网格上运行命令,它被一个脚本自动包装,该脚本有空格和双引号的问题。
Worked for me: 为我工作:
-m "My_private_branch"
Hope it works for you too. 希望它也适合你。
PS: Haven't tried it but maybe -m 'My private branch' with single quotes does work. PS:没试过但可能-m'我的私人分支'用单引号确实有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.