From owner-freebsd-current@freebsd.org Mon Oct 5 09:19:52 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 39BB33FCD41 for ; Mon, 5 Oct 2020 09:19:52 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4Zn33K14z4srp for ; Mon, 5 Oct 2020 09:19:51 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by mail-ot1-f45.google.com with SMTP id q21so7917550ota.8 for ; Mon, 05 Oct 2020 02:19:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jrpgc44s0XlOgDolqeTKaUkfUL8d/hXPxmKT6f71Kik=; b=CJAtDdgMMh96HqXTzjfth8kKB87STYD5GncG4RJ1d1liKlb0oi1POzGsncZmTrGtnv 1JKtu+618OYLWDJfSi/GtNSqsPBrvQJB1Oo9SaAMZQhYaJybmfsqYlPRAWxGyFXZ/6pm xQljI8FvrRQwPv2Bf6crt3YlfBofYfHEW69ugMc9bEnapOl0SN00GX2cUN9s7UWF8KmJ VA2OvIpQbTPdYGEs24cD4vdGGknE75Iv/tsYII1eVPhez1ohMZnntlMm7rc0GyO0pHFD tOPnSY/uvJeQIK5DKCcpL/HB+zHC8NUYlShZODZ28hiDY0Ql/M5mqvKU++Uz6Tro91Nl Nz+A== X-Gm-Message-State: AOAM530pI5oDBPKapqsULTwQTROAvzdEtZwsbOEn+rhqFvVP06pcvQPm 5YdGDYZjPVnBqZJ45AhzDzL3a+vwpMHQyZYBJMs= X-Google-Smtp-Source: ABdhPJzCneZV2Ie5k6IaNHIZ2DASubzUj0mR5ulweG93pbThANuvLbbIJLiQlonH6Pvuuicz83kUQ5GnbU7TeAVPkbY= X-Received: by 2002:a9d:3a64:: with SMTP id j91mr2699378otc.207.1601889590066; Mon, 05 Oct 2020 02:19:50 -0700 (PDT) MIME-Version: 1.0 References: <20200903191410.sgjUQ%steffen@sdaoden.eu> <20200926195056.1QqEB%steffen@sdaoden.eu> <20201003221407.ZnssQ%steffen@sdaoden.eu> In-Reply-To: From: =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= Date: Mon, 5 Oct 2020 11:19:38 +0200 Message-ID: Subject: Re: Please check the current beta git conversions To: Bakul Shah Cc: Steffen Nurpmeso , FreeBSD Current X-Rspamd-Queue-Id: 4C4Zn33K14z4srp X-Spamd-Bar: - X-Spamd-Result: default: False [-1.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.972]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.02)[-1.023]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.45:from]; NEURAL_SPAM_SHORT(0.50)[0.505]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.45:from]; FORGED_SENDER(0.30)[uqs@freebsd.org,uspoerlein@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[uqs@freebsd.org,uspoerlein@gmail.com]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 09:19:52 -0000 On Sun, Oct 4, 2020 at 1:53 AM Bakul Shah wrote: > FWIW, I have a bare repo with the following config file > > [core] > repositoryformatversion = 0 > filemode = true > bare = true > logallrefupdates = true > [remote "origin"] > url = https://cgit-beta.freebsd.org/src.git > fetch = +refs/heads/*:refs/remotes/origin/* > fetch = +refs/notes/*:refs/notes/* > [branch "main"] > remote = origin > merge = refs/heads/main > > /usr/src is a worktree and everything seems to be working fine. > > I manually converted to a bare repo (first testing this with a much > smaller repo) and fixed up various refs. But probably safer to > just start from scratch: > > git clone --bare https://cgit-beta.freebsd.org/src.git > cd src.git > git fetch origin 'refs/notes/*:refs/notes/origin/*' # <<< not sure about > this.... > # don't recall if I manually added the second fetch line in the > config file. > # but notes get fetched fine; though I don't understand why 100MB+ > get > # downloaded every time even though only a few files change. > This is a quirk of the conversion. We have to patch up several tags post-conversion, which patches up their notes, but that happens after the full conversion is done. Notes are just 1 long linear branch, which ... well, is unfortunate. So essentially every update to the repo changes the last couple hundred of hashes for the commit notes objects/tree/DAG/linear train. They always need to get force-pushed upstream and you always have to re-fetch quite a bunch of them. This will all cease with the final transition, obviously. hth Uli