假设我有两个项目
a) com.foo.bar
我的文件夹结构为
com/foo/bar
b) com.foo.morebar
文件夹结构为
com/foo/morebar
是否可以在顶层添加(b)作为(a)的子回购?
我试过
echo com/foo/morebar = com/foo/morebar > .hgsub
hg add .hgsub
hg clone http://myurl/moreBarRepo com/foo/morebar
这很遗憾(很明显)创建了
的目录结构com/foo/morebar/com/foo/morebar
无论如何得到
com/foo/bar
和
com/foo/morebar
使用子回购存在?
感谢。
答案 0 :(得分:1)
您无法在存储库中使用文件夹作为另一个存储库中的子参与者。期
要将morebar
作为bar
的子存储库与路径com/foo/morebar
,您必须
morebar
进入存储库morebar
中的正确 RHS,将bar
作为子存储库添加到wrapper-repos(morebar
和.hgsub
)中(仔细阅读,了解"注意"来自Subrepository topic的Aragost Trifork的Mercurial Kick Start Exercises)