Gentoo Archives: gentoo-user

From: Miles Malone <m.malone@××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Switched from rsync to git, now emerge --sync fails
Date: Thu, 14 Oct 2021 08:28:22
Message-Id: CAM8Dd_3bZBpq_BnYwmd3gPUbmaaD+-bWbwz=-RJB_v7o5xVwzg@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Switched from rsync to git, now emerge --sync fails by Peter Humphrey
1 Look I mean in any other context for a git repository sync-depth=0
2 would be the obvious choice, why have a version control system if
3 you're limiting the version control. It was added to gentoo so that
4 developers could work on their own branches of the git repo whilst
5 still having it actually work with portage. And then the next logical
6 application is making your own /usr/local/portage not suck. Using git
7 as the main sync instead of rsync is something that's come about way
8 later, and really is fairly niche, compared to what the git capability
9 in portage was originally designed for.
10
11 So the default being for git to act like git, instead of git to act
12 like an alternative to rsync, makes perfect sense in that context.
13
14 On Thu, 14 Oct 2021 at 18:22, Peter Humphrey <peter@××××××××××××.uk> wrote:
15 >
16 > On Thursday, 14 October 2021 03:50:59 BST Grant Edwards wrote:
17 > > On 2021-10-13, Rich Freeman <rich0@g.o> wrote:
18 > > > On Wed, Oct 13, 2021 at 2:50 PM Grant Edwards
19 > <grant.b.edwards@×××××.com> wrote:
20 > > >> Is there some reason it should default
21 > > >> to doing unlimited depth fetch operations?
22 > > >
23 > > > If all you want is a repo, no reason to set the depth higher.
24 > >
25 > > Then a default of 1 seems like the obvious "right" answer.
26 > > Unfortunately, it defaults to "unlimited" according to
27 > > https://wiki.gentoo.org/wiki//etc/portage/repos.conf
28 > >
29 > > sync-depth
30 > >
31 > > Specifies sync depth to use for DVCS repositories. If set to 0,
32 > > the depth is unlimited. Defaults to 0.
33 > >
34 > > > If you want to see the history then you'll want it all.
35 > >
36 > > Apparently, that's the default. Without any sync-depth setting the
37 > > fetch was stalling and then timing out after 60s. With sync-depth=1,
38 > > the fetch completed in about 1s.
39 >
40 > I have it set to 8 here, for no reason I can remember. Is there a disadvantage
41 > in that?
42 >
43 > --
44 > Regards,
45 > Peter.
46 >
47 >
48 >
49 >

Replies

Subject Author
Re: [gentoo-user] Re: Switched from rsync to git, now emerge --sync fails Wol <antlists@××××××××××××.uk>