Gentoo Archives: gentoo-scm

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-scm@l.g.o
Subject: Re: [gentoo-scm] Current status of cvs to git migrartion
Date: Mon, 26 Oct 2009 21:08:36
Message-Id: robbat2-20091026T210132-279769113Z@orbis-terrarum.net
In Reply to: Re: [gentoo-scm] Current status of cvs to git migrartion by Arun Raghavan
1 On Mon, Oct 26, 2009 at 02:24:40PM +0530, Arun Raghavan wrote:
2 > Spent a short while looking at this. As Robin pointed out, there's
3 > post-upload support in upstream git so basing this off that should be
4 > reasonably straightforward.
5 >
6 > I got a little lost with regards to exactly why we we're doing this,
7 > so will figure things out and get on this (hoping to get some time to
8 > attack this in the next 2 weeks).
9 The body of the pre-upload hook is basically going to function like
10 this:
11 ====
12 if(pull is an update) then
13 // allow
14 elseif(pull is an initial clone) then
15 // deny, instruct to use the initial Git bundle, give URL.
16 end
17 ====
18
19 Because doing an initial clone:
20 - is not restartable (bundles via HTTP/rsync are)
21 - causes a lot of server load
22 - is not always optimally packed
23 - is a huge download.
24
25 We fully intend to deny initial full clones. Shallow clones we will
26 probably allow (they look different in the pre-upload stage).
27
28 --
29 Robin Hugh Johnson
30 Gentoo Linux: Developer, Trustee & Infrastructure Lead
31 E-Mail : robbat2@g.o
32 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85