Mercurial 将目录子集推送到辅助远程站点
我正在考虑在我们的小办公室中使用 Mercurial。我们有一个开发服务器、一个临时服务器和一个实时服务器。实时服务器包含我们的网站,登台服务器包含我们的网站以及一些不应推送到实时服务器的 Intranet 目录。
在设置 Mercurial 时 - 有什么方法能够将整个存储库推送到登台服务器:我们的公共站点以及 Intranet 目录,但是,当推送到实时服务器时仅发送与公共站点关联的那些目录?
换句话说,当推动上演时,推动一切。推送上线时排除内网站点的目录?
-查理
I'm considering using Mercurial in our small office. We've got a development server, a staging server and a live server. The live server contains our web site, the staging server contains our web site and additionally some intranet directories that should not be pushed to the live server.
In setting up Mercurial - is there any way to be able to push the entire repository to the staging server: our public site as well as the intranet directories, but, when pushing to the live server only send those directories associated with the public site?
In other words - when pushing to staging, push everything. When pushing to live, exclude the directories for the intranet site?
-Charlie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
推和拉操作仅作用于整个存储库。其他一些可用选项包括:
或
The push and pull operations act on the entire repository only. Some other options available are:
hg archive -X
to build an archive file with a subset of the repo (tip only, no history)or