在克隆中进行更改时,Mercurial子存储库保持最新的工作流程?

jps*_*ook 5 version-control mercurial subrepos

我已经阅读了关于Mercurial子存储库的每个问题,但我仍然不确定它是如何工作的.我们在IIS上使用hgweb.cgi,因此我们有http://所有repos的路径.

这是基本布局:

/Libraries - http://server/Libraries
/Project1 - http://server/Project1
/Project1/LibrariesSubrepo - http://server/Project1/LibrariesSubrepo (clone of libraries)
/Project2 - http://server/Project1
/Project2/LibrariesSubrepo - http://server/Project2/LibrariesSubrepo (clone of libraries)
Run Code Online (Sandbox Code Playgroud)

在.hgsub文件中,我将路径设置为:

LibrariesSubrepo = LibrariesSubrepo
Run Code Online (Sandbox Code Playgroud)

如果我想处理项目,我将它们从服务器克隆到我的工作站,所以我有一个Project1和Project2的克隆,它也会自动拉出子目录.

在我本地工作站的project1中,我对/ Project1/LibrariesSubrepo中的文件进行了一些更改.如何确保这些更改使其返回到服务器上的库的源代码库?我是否必须手动将更改从subrepo推送到subrepo的源repo?

我希望能够在本地更改Project1 repo,然后提交/推送这些更改,然后在Project2中,我应该能够从服务器中提取更改Project2/LibrariesSubrepo的更改到最新版本.