代码之家  ›  专栏  ›  技术社区  ›  9ilsdx 9rvj 0lo

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

  •  0
  • 9ilsdx 9rvj 0lo  · 技术社区  · 6 年前

    我试图在两个svn分支之间创建diff,因此我尝试了以下命令:

    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存储库,但这会是一个很大的杀伤力。。。

    如何在SVN中为我的案例创建两个分支之间的差异?

    0 回复  |  直到 6 年前
        1
  •  1
  •   DannyMeister    5 年前

    我收到你的第一个错误信息时,在我的分行的URL中有一个空格。用引号将URL括起来解决了这个问题。