简体   繁体   English

如何使用连接到最新发行版标签的mercurial或git子存储库?

[英]How to use mercurial or git subrepositories that are connected to the latest release tag?

I am looking for a solution that would allow me to use subrepositories that are getting not the HEAD and instead a specific RELEASE tag, or if possible the latest tag. 我正在寻找一种解决方案,该解决方案将允许我使用不是获得HEAD而是获得特定RELEASE标记或最新标记的子存储库。

Is this possible, how should I implement this? 这可能吗,我应该如何实现呢? Did anyone implemented this? 有人实现了吗?

I don't know about git , but Mercurial sub-repositories don't link to the head of the sub-repository but to a specific revision. 我不了解git ,但是Mercurial子存储库不链接到子存储库的头,而是链接到特定的修订版。

To set the revision of a sub-repository, you update it to the revision that you want (in your case a specific tag) and then commit the main repository. 要设置子存储库的修订,请将其更新为所需的修订(在您的情况下为特定标记),然后提交主存储库。 That then links the main repository to the specific revision of the sub-repository. 然后将主存储库链接到子存储库的特定修订版。

A good guide on Mercurial sub-repositories can be found here and the Mercurial sub-repository documentation is here . 在水银子库很好的指导作用,可以发现这里和水银子库的文档是在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM