是否可以同时从多个Mercurial存储库中提取? [英] Is it possible to pull from multiple Mercurial repositories at the same time?

查看:71
本文介绍了是否可以同时从多个Mercurial存储库中提取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够做这样的事情:

I'd like to be able to do something like this:

hg pull http://server/repo1 http://server/repo2 http://otherserver/repo

并立即删除所有变更集,并显示添加了x个变更集,其中y个变更到z个文件"消息,汇总了所有提取的结果.我目前正在使用(略微复杂的)bash脚本执行此操作,但是有一种方法可以通过我错过的单个Mercural命令(或已经存在的插件)来执行此操作?

and have all of the changesets come down at once, with the "added x changesets with y changes to z files" message aggregating the results of all of the pulls. I'm currently doing this with a (marginally complex) bash script, but is there a way to do it with a single mercurial command (or an already-existing plugin) that I've missed?

推荐答案

正如@James所指出的,如果您的存储库中有

As @James noted, if your repository have

PATH1-REPO1

PATH1 - REPO1

PATH2-REPO2

PATH2 - REPO2

...

结构,您可以使用超级仓库"的想法并立即提取所有包含的仓库(但我建议使用 GuestRepo )

structure, you can use "super-repo" idea and pull all included repos at once (but instead of subrepo extension I'll suggest GuestRepo)

如果您回购拉动源的通用基础和组合变更集是必须 必须,则必须使用中间存储库作为收集器.即

In case of common base in you repo for pull sources and combined changeset is a must, you must to use intermediate repository as collector. I.e

  • 创建中间存储库

hg克隆工作介体

hg clone WORK MEDIATOR

  • 拉外部组件(来自MEDIATOR)
  • hg pull EXTERNAL1& hg pull EXTERNAL2 ... hg pull EXTERNALN

    hg pull EXTERNAL1 & hg pull EXTERNAL2 ... hg pull EXTERNALN

    • 拉调解器(来自WORK)
    • hg pull MEDIATOR

      hg pull MEDIATOR

      这篇关于是否可以同时从多个Mercurial存储库中提取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆