简体   繁体   English

如何解决svn错误:“E200007:无法混合存储库和工作副本源”

[英]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.

相关问题 SVN:无法混合存储库和工作副本源错误 - SVN: Cannot mix repository and working copy sources error SVN 错误:svn:E200007:“org.tmatesoft.svn.core.wc2.SvnMerge”的运行程序 - SVN Error: svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge' Maven Release Plugin - svn:E200007:源和目标URL似乎不指向同一个存储库 - Maven Release Plugin - svn: E200007: Source and destination URLs appear not to point to the same repository 如何解决 svn: E230001: Unable to connect to a repository at URL and svn: E230001: Server SSL certificate untrusted error? - How to solve svn: E230001: Unable to connect to a repository at URL and svn: E230001: Server SSL certificate untrusted error? 如何从导出的副本更新现有的SVN存储库? - How can I update an existing SVN repository from an exported copy? 如何将git信息库复制到新的svn帖子库中? - How can I copy a git repository into a new svn repostory? 如何解决svn错误E155010? - How to solve svn error E155010? 如何判断 SVN 工作副本点中的所有目录都位于同一存储库根目录? - How can I tell that all directories in a SVN working copy point at the same repository root? 如何从工作副本创建 svn 存储库? - How to create svn repository from working copy? 来自工作副本的svn存储库 - svn repository from working copy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM