将 Subversion Edge 移动到新服务器后无法提交到 SVN
Cannot commit to SVN after moving Subversion Edge to new server
我可以结帐、浏览历史记录等...但是当我尝试使用 Tortoise SVN 提交任何更改时,我收到错误消息:
Commit failed (details follow):
Commit blocked by pre-commit hook (exit code 255) with output:
The system cannot find the path specified.
If you want to break the lock, use the 'Check For Modifications' dialog or the repository browser.
这是在我们设置新服务器并从旧服务器复制存储库数据后发生的。服务器上的错误日志包含:
[Tue Dec 08 13:23:29.696220 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59995] Could not MERGE resource "/svn/Phil/!svn/txn/2501-1w2" into "/svn/Phil". [500, #0]
[Tue Dec 08 13:23:29.696220 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59995] Commit blocked by pre-commit hook (exit code 255) with output:\nThe system cannot find the path specified.\r\n [500, #165001]
[Tue Dec 08 13:23:29.789973 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59997] Could not fetch resource information. [404, #0]
[Tue Dec 08 13:23:29.789973 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59997] Named transaction doesn't exist. [404, #175002]
有什么建议吗?
这是因为新服务器上的软件安装在与原始服务器上不同的文件夹中,并且文件夹名称被硬编码到存储库中的预提交挂钩脚本中。
编辑在 hooks 子文件夹中找到的 pre-commit.cmd 并更正路径解决了问题。
我可以结帐、浏览历史记录等...但是当我尝试使用 Tortoise SVN 提交任何更改时,我收到错误消息:
Commit failed (details follow):
Commit blocked by pre-commit hook (exit code 255) with output:
The system cannot find the path specified.
If you want to break the lock, use the 'Check For Modifications' dialog or the repository browser.
这是在我们设置新服务器并从旧服务器复制存储库数据后发生的。服务器上的错误日志包含:
[Tue Dec 08 13:23:29.696220 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59995] Could not MERGE resource "/svn/Phil/!svn/txn/2501-1w2" into "/svn/Phil". [500, #0]
[Tue Dec 08 13:23:29.696220 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59995] Commit blocked by pre-commit hook (exit code 255) with output:\nThe system cannot find the path specified.\r\n [500, #165001]
[Tue Dec 08 13:23:29.789973 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59997] Could not fetch resource information. [404, #0]
[Tue Dec 08 13:23:29.789973 2015] [dav:error] [pid 9044:tid 920] [client 192.168.16.150:59997] Named transaction doesn't exist. [404, #175002]
有什么建议吗?
这是因为新服务器上的软件安装在与原始服务器上不同的文件夹中,并且文件夹名称被硬编码到存储库中的预提交挂钩脚本中。
编辑在 hooks 子文件夹中找到的 pre-commit.cmd 并更正路径解决了问题。