From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2784158086 for ; Thu, 14 Oct 2021 08:28:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C3DCE08C8; Thu, 14 Oct 2021 08:28:17 +0000 (UTC) Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7D9AE0844 for ; Thu, 14 Oct 2021 08:28:16 +0000 (UTC) Received: by mail-ua1-x92b.google.com with SMTP id f4so9719585uad.4 for ; Thu, 14 Oct 2021 01:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=homicidalteddybear.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TdohhUBdBp1eZkhqae+zTSENZFxRyA4NOlH4fuzgYTE=; b=M3qcBBwxokWIUvlfQohYwp60NcG6HYPbdzMqzKUkqb/soTjnwu4T4BgTHNC99IeFWb SbPcKTYTpng6H3qtjpXZqmP5G85cQFEdoz5g2woVrD/4KDD/C7V0yAIWmZVZ45QPMkk+ uw2LmqPVe1FE1SgmwJgVV04k4hmZ2/7OqnfuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TdohhUBdBp1eZkhqae+zTSENZFxRyA4NOlH4fuzgYTE=; b=sCaqPz76+0zyGxg17btZwqg+rMXUWTzwRwbV2OCll6KcS2yVsjKvsaUGPGvEh7+Y/L psbVGcyLQtikKVybJUo6OwoUORc3fT7jlTLImNgBYd6jjV6mlvXe/SHS9pNXAhQRmWNn 2pgql3AKJ6dCM/UmByDQho7x/FVKIGMLDZMkLjwUkC+mS80+WFZU7rrT1HqH9zI1tX09 V0abuXgnKFexAWOHJl6QeoE5SGUk7d44Ll4tpGWfOiQxkTiB69JkBtv7bP9QeEUZNehn LEYHRofViSH2gNbG9GiXPwjBWLnVa4oLCWQcAfYoufFJNNEzDIhbpsnXLLfE4hSe2YtE xWPA== X-Gm-Message-State: AOAM5302r5WwYqqXijaalx6PgSMU0d1UuksvpvUdOMXeKR2sqMWyGwPV lGlX+RHM7Dq2o1a/YJDuBrxkaV8RknI7vCbqTOxUdz0jDWk= X-Google-Smtp-Source: ABdhPJz7LwO9FL6XTgtIXXczPvivrFsbXMBxpQwssyainRoGdIy4Dh1seE+oK9gqEYjm6YDiRwGH6lVGHMffVMx3Bps= X-Received: by 2002:a67:1004:: with SMTP id 4mr5067346vsq.26.1634200095876; Thu, 14 Oct 2021 01:28:15 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <5515605.DvuYhMxLoT@wstn> In-Reply-To: <5515605.DvuYhMxLoT@wstn> From: Miles Malone Date: Thu, 14 Oct 2021 18:28:04 +1000 Message-ID: Subject: Re: [gentoo-user] Re: Switched from rsync to git, now emerge --sync fails To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 8c4928ca-65ba-4595-ad39-b82fefee29d0 X-Archives-Hash: 492ffd28fd624b1cc01780a0fbf4d0d1 Look I mean in any other context for a git repository sync-depth=0 would be the obvious choice, why have a version control system if you're limiting the version control. It was added to gentoo so that developers could work on their own branches of the git repo whilst still having it actually work with portage. And then the next logical application is making your own /usr/local/portage not suck. Using git as the main sync instead of rsync is something that's come about way later, and really is fairly niche, compared to what the git capability in portage was originally designed for. So the default being for git to act like git, instead of git to act like an alternative to rsync, makes perfect sense in that context. On Thu, 14 Oct 2021 at 18:22, Peter Humphrey wrote: > > On Thursday, 14 October 2021 03:50:59 BST Grant Edwards wrote: > > On 2021-10-13, Rich Freeman wrote: > > > On Wed, Oct 13, 2021 at 2:50 PM Grant Edwards > wrote: > > >> Is there some reason it should default > > >> to doing unlimited depth fetch operations? > > > > > > If all you want is a repo, no reason to set the depth higher. > > > > Then a default of 1 seems like the obvious "right" answer. > > Unfortunately, it defaults to "unlimited" according to > > https://wiki.gentoo.org/wiki//etc/portage/repos.conf > > > > sync-depth > > > > Specifies sync depth to use for DVCS repositories. If set to 0, > > the depth is unlimited. Defaults to 0. > > > > > If you want to see the history then you'll want it all. > > > > Apparently, that's the default. Without any sync-depth setting the > > fetch was stalling and then timing out after 60s. With sync-depth=1, > > the fetch completed in about 1s. > > I have it set to 8 here, for no reason I can remember. Is there a disadvantage > in that? > > -- > Regards, > Peter. > > > >