我在.hgsub
中使用了以下几行:
setup/help = https://my.repo.com/manuals
它会将名为“manuals”的存储库放入另一个文件夹help
中的文件夹setup
中。所以我的父存储库结构如下所示:
.hg
setup
|__help
| |__.hg
|
.hgsub
这是没有问题,直到我今天更新到Mercurial 4.9,它现在说:“subrepo路径包含非法组件: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)。我在实际的默认分支上测试了它,再次工作!
因此,不需要输入错误,我们只需要等待下一个版本。
您对Python调试器有多大信心?你这次可以使用--debugger
启动命令。
你可能会看到这样的输出:
entering debugger - type c to continue starting hg or h for help
--Call--
> /usr/lib64/python2.7/contextlib.py(21)__exit__()
-> def __exit__(self, type, value, traceback):
(Pdb)
输入c
和enter
,直到看到与粘贴的相同的回溯。
当您处于正确的回溯时,您可以使用pp root
,pp util.expandpath(root)
和os.path.realpath(util.expandpath(root))
打印局部变量。我们应该能够利用这些变量的值来找到问题的根源。
要退出调试器,请输入q
和enter
。