Please check the current beta git conversions
Ulrich Spörlein
uqs at freebsd.org
Tue Oct 6 09:51:20 UTC 2020
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
More information about the freebsd-current
mailing list