多年来我在 .hgsub
中使用了以下行:
setup/help = https://my.repo.com/manuals
它会将名为“manuals”的存储库放入另一个文件夹 setup
内的文件夹 help
中。所以我的父存储库结构如下所示:
.hg
setup
|__help
| |__.hg
|
.hgsub
这本来没有问题,直到我今天更新到 Mercurial 4.9,它现在显示:“子存储库路径包含非法组件:setup/help”,我什至无法提交到主存储库。 Mercurial 现在禁止这样做吗?是否有有效的 .hgsub
语法来实现此功能?我不想将 help
移动为主项目文件夹的直接子文件夹。我之前的 Mercurial 版本是 4.5,这不像我使用古老的工具......
根据请求进行错误回溯:
Traceback (most recent call last):
File "mercurial\scmutil.pyo", line 165, in callcatch
File "mercurial\dispatch.pyo", line 367, in _runcatchfunc
File "mercurial\dispatch.pyo", line 1021, in _dispatch
File "mercurial\dispatch.pyo", line 756, in runcommand
File "mercurial\dispatch.pyo", line 1030, in _runcommand
File "mercurial\dispatch.pyo", line 1018, in <lambda>
File "mercurial\util.pyo", line 1670, in check
File "mercurial\commands.pyo", line 4621, in push
File "mercurial\context.pyo", line 277, in sub
File "mercurial\subrepo.pyo", line 164, in subrepo
File "mercurial\subrepo.pyo", line 414, in __init__
Abort: subrepo path contains illegal component: setup/help
abort: subrepo path contains illegal component: setup/help
最佳答案
我遇到了同样的错误,所以我克隆了 Mercurial 存储库...
该错误是在标记版本 4.9 subrepo.py 中引入的。
大约一个月后,该问题得到纠正,修订版 41583 (87a6e3c953e045d92147925fc71aad7c327fdbfd)。 我在实际的默认分支上测试了它,再次工作!
因此,无需输入错误,我们只需等待下一个版本即可。
关于mercurial - Mercurial 子存储库可以驻留在子文件夹中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54868056/