gpt4 book ai didi

svn "path not found"使用 HTTPS 创建分支时出错

转载 作者:行者123 更新时间:2023-12-01 07:07:26 27 4
gpt4 key购买 nike

我正在尝试在 Subversion 存储库中创建一个具有一些非标准结构的新分支:而不是 repo/trunkorg/trunk/repo .只能使用 HTTPS 协议(protocol)进行访问。

我试图在 中创建一个分支半标准方式 (注意:下面的命令被编辑了一点)

$ svn copy \
https://svn.example.org/svnroot/ph/org/trunk/repo \
https://svn.example.org/svnroot/ph/org/branches/foo/repo \
-m "Create a 'foo' branch of /trunk/repo"

此命令导致奇怪的“找不到路径”错误:
svn: '/svnroot/ph/org/!svn/bc/71/branches/foo' path not found

我不认为这是权限问题,如以下命令
$ svn copy \
https://svn.example.org/svnroot/ph/org/trunk/repo \
https://svn.example.org/svnroot/ph/org/branches/foo_repo \
-m "Create a 'foo' branch of /trunk/repo"

成功了
Committed revision 72.

这个问题的原因可能是什么?我该如何解决它?

Subversion 服务器版本为 1.6.19 (r1383947),Subversion 客户端版本为 1.6.17 (r1128011)。

最佳答案

默认情况下,您不能即时创建中间目录。有 -- parent 切换到执行此操作。所以正确的命令应该是:

svn copy --parents \
https://svn.example.org/svnroot/ph/org/trunk/repo \
https://svn.example.org/svnroot/ph/org/branches/foo/repo \
-m "Create a 'foo' branch of /trunk/repo"

关于svn "path not found"使用 HTTPS 创建分支时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12886151/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com