Re: [PATCH] Allow fetching from multiple repositories at once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 28 Jul 2006, Petr Baudis wrote:

> Dear diary, on Fri, Jul 28, 2006 at 10:51:56AM CEST, I got a letter
> where Johannes Schindelin <Johannes.Schindelin@xxxxxx> said that...
> > So the scenario is: one remote repository (probably shared), and multiple 
> > local repositories, all tracking different branches?
> > 
> > So, why not setup a single local (master) repository, setup all the other 
> > repos with the local master as alternate, and write a simple script which 
> > first fetches all branches into the master, and then pulls into the other 
> > local repos from that master?
> 
>   Nope, the scenario is many remote repositories and any number of local
> repositories.

Ah, that clarifies it for me.

> Look at http://gitweb.freedesktop.org/ - as far as I know, many people 
> have many (most?) of those repositories cloned and fetching updates is 
> just a huge pain. This makes no assumptions about the number of local 
> repositories, you can even fetch into various branch of a single local 
> repository - only if you fetch into multiple repositories, all of them 
> must see the objects you fetched.
> 
>   The alternative of squashing all the remote repositories into a single
> one is probably not very attractive since you get a huge branches tree
> instead, varying hooks will get impractical, it won't look good in
> gitweb, git clone will by default clone all the stuff, you will need to
> impose tag namespaces, permissions might get tricky and so on and so on.

You misunderstood me: I was talking about a (hidden) local multiplexer.

But in the scenario you painted, wouldn't it be practical to have one 
consolidated repo _in addition_ to the small ones? Of course, the refs in 
the consolidated one would have to be prefixed with the name of the repo 
they come from.

> > The beauty of it is: you can still pull/push directly from the remote 
> > repo, if you want.
> 
>   This should let you do that too.

Of course. But the solution I proposed does not need a patch, and _still_ 
lets you do said operations. Just wanted to point that out.

Ciao,
Dscho

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]