Re: Please check the current beta git conversions

From: Ulrich Spörlein <uqs_at_freebsd.org>
Date: Tue, 6 Oct 2020 11:51:06 +0200
On Mon, Oct 5, 2020 at 7:21 PM Steffen Nurpmeso <steffen_at_sdaoden.eu> wrote:

> Ulrich Spörlein wrote in
>  <CAJ9axoRBTz89y6v+LVjdM-FgfEbk8GHVy=TeK0xKNCY089Oaxg_at_mail.gmail.com>:
>  |On Sun, Oct 4, 2020 at 1:53 AM Bakul Shah <bakul_at_iitbombay.org> wrote:
>  |> 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.
>
> I was astonished to see third-to-last commit on my notes is from
> Dag-Erling Smørgrav "+svn path=/vendor-crypto/openssh/5.8p2/;
> revision=221485; tag=vendor/openssh/5.8p2".
>
>  |This will all cease with the final transition, obviously.
>
> I guess they will simply vanish and i could remove the reference
> from my config already today?
>
>
They will not vanish. They are there to map git commits back to SVN
revisions.
What will change is that they'll never change again and are just a static,
eternal record
of that mapping.

Of course, freebsd committers can then in the future push their own notes
(but not force-push them) , but it's not clear what you would want to put
into them?

If you don't have a need to ever map git <-> svn commits, then you don't
need to fetch
them indeed.

hth
Uli
Received on Tue Oct 06 2020 - 07:51:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC