我可以使用带有 Subversion 子存储库的 Mercurial 来自动签出吗?
我已经设置了一个包含 subversion 子存储库的 Mercurial 存储库。我已经配置了一个 .hgsub
文件,以便 Mercurial 能够识别该存储库。但是,我希望每当我对存储库进行拉取操作时,Mercurial 都可以自动触发 svn update
。
Mercurial subversion 存储库可以实现这一点吗?如果不是,那么与将该子目录放在 .hgignore
中相比,拥有 .hgsub
文件有什么优势?
I've set up a Mercurial repository that has a subversion subrepository. I've configured an .hgsub
file so that Mercurial is aware of that repository. However, I was expecting that Mercurial could trigger an svn update
automatically whenever I did a pull on the repository.
Is this possible with Mercurial subversion repositories? If not, what's the advantage of having the .hgsub
file at all as opposed to placing that subdirectory in .hgignore
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Mercurial 不会自动拉取/更新子存储库。来自
hg help subrepos
:将存储库放在
.hgignore
中将不允许您跟踪子存储库的哪个版本与父级的每个版本兼容/测试。在 SVN 术语中,这类似于创建绑定到特定 SVN 修订版的
svn:external
链接。Mercurial does not automatically pull/update subrepos. From
hg help subrepos
:Placing the repo in
.hgignore
would not allow you to track which version of the subrepo is compatible/tested with each version of the parent.In SVN terms, this is similar to create an
svn:external
link which is bound to a specific SVN revision.