svn diff:不支持混合目标类型

时间:2018-10-31 07:28:45

标签: svn diff

我试图在2个svn分支之间创建差异,所以我尝试了以下命令:

svn diff https://mysvn/myrepo/branches/branch1url https://mysvn/myrepo/branches/branch2url

我收到了错误消息:

svn: E205000: Try 'svn help diff' for more information
svn: E205000: 'svn diff [-r N[:M]] [TARGET[@REV]...]' does not support mixed target types. Try using the --old and --new options or one of the shorthand invocations listed in 'svn help diff'.
svn: E205000: Error parsing arguments
svn: E200009: Cannot mix repository and working copy targets

检查帮助后,我又尝试了一次尝试:

svn diff --old=https://mysvn/myrepo/branches/branch1url
 --new=https://mysvn/myrepo/branches/branch2url

并收到另一条错误消息:

svn: E205000: Try 'svn help diff' for more information
svn: E205000: Path 'https://mysvn/myrepo/branches/branch2url' not relative to base URLs

我很困惑现在该怎么办。来自git,无法执行最简单的任务非常令人沮丧... 我总是可以将项目导入git仓库,但是这太过分了...

如何针对我的情况在SVN中的两个分支之间创建差异?

1 个答案:

答案 0 :(得分:1)

当分支的URL中有空格时,我收到了您的第一条错误消息。用引号引起来的URL可以解决此问题。