如何同步两个或多个 Mercurial 服务器?
我想将 Mercurial 服务器保留在四个不同的位置,并希望它们在任何给定时间都相同。这意味着,对其中任何一个服务器的任何更改都必须传播到所有其他服务器。怎么做呢?
I want to keep Mercurial servers at four different locations, and want them to be identical at any given time. Meaning, any change to any of them must be propagated to all other servers. How to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
incoming
挂钩在服务器上添加操作。挂钩允许您在存储库上发生事件时自动执行任务。每当您推送到存储库时,您也可以推送到镜像。
有关挂钩的更多信息: http://hgbook.red-bean .com/read/handling-repository-events-with-hooks.html
You can add an action on the server with an
incoming
hook.Hooks allow you to automate tasks when events happen on the repository. Whenever you get a push into the repository, you can push to your mirrors as well.
More on hooks: http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html