suggestions on possible replacements for multirepo

Martin Geisler mg at aragost.com
Mon May 9 08:04:52 UTC 2011


Andreas Tscharner <andy at vis.ethz.ch> writes:

> On 09.05.2011 08:58, Faheem Mitha wrote:
>>
>
> [snip]
>> This is a problem. Can anyone suggest how I might obtain similar
>> functionality some other way? I am not aware of other options that will
>> do the same thing, but I can't remember if I actually ever asked here,
>> and perhaps I'm missing something.
>
> You could try subrepos. Create a simple "container repo" and use all
> your needed repos as subrepos in this "container repo".
> http://mercurial.selenic.com/wiki/Subrepository

>From the description, the multirepo extension makes it possible to do

  hg push

and have Mercurial do

  hg push somerepo; hg push otherrepo

internally. Subrepositories try to solve a different problem.

It it is only push that need to be repeated like this, then I would do

  [alias]
  multipush = !$HG push somerepo; $HG push otherrepo

and use 'hg multipush' from now on.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/



More information about the Mercurial mailing list