Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2020 09:31:16 -0400
From:      "Dan Langille" <dan@langille.org>
To:        =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= <uqs@freebsd.org>, "Warner Losh" <imp@bsdimp.com>
Cc:        git@freebsd.org
Subject:   Re: What happens to old repo links?
Message-ID:  <1cdd41a7-d3f0-4d18-8467-66166e00563b@www.fastmail.com>
In-Reply-To: <CAJ9axoRanrn8uqYFHrncQXttkPrC6cDUsFhY4ym=FtVEsyGWdQ@mail.gmail.com>
References:  <8B5D0824-F412-4067-B874-21F2EA6EAEE6@langille.org> <20200711094146.GB16439@acme.spoerlein.net> <CANCZdfo=oHhUb=Hh9fK=OX4woQLUPO%2BRhVJLAWKCpaYuUAP7Yg@mail.gmail.com> <CAJ9axoRanrn8uqYFHrncQXttkPrC6cDUsFhY4ym=FtVEsyGWdQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Keeping the svn webserver active will solve several FreshPorts issues. :=
)

On Sun, Jul 12, 2020, at 9:24 AM, Ulrich Sp=C3=B6rlein wrote:
> Good point, https://github.com/freebsd/git_conv/issues/20
>=20
> On Sun, Jul 12, 2020 at 6:25 AM Warner Losh <imp@bsdimp.com> wrote:
>> Do we need to track this as an item in our github issues area? We don=
't really need the redirector until we turn off the current svn web serv=
er, which can run indefinitely with a read-only svn repo...
>>=20
>> Warner
>>=20
>> On Sat, Jul 11, 2020 at 3:41 AM Ulrich Sp=C3=B6rlein <uqs@freebsd.org=
> wrote:
>>> On Fri, 2020-07-10 at 20:52:35 -0400, Dan Langille wrote:
>>>  > Hello,
>>>  >=20
>>>  > At present, we have links to old commits, such as: https://svnweb=
.freebsd.org/ports/head/graphics/mesa-devel/Makefile?annotate=3D537860
>>>  >=20
>>>  > In git, how will that work? How will we get to revision 537860?
>>>  >=20
>>>  > Similarly, for https://svnweb.freebsd.org/ports?view=3Drevision&r=
evision=3D537860
>>>  >=20
>>>  > How will that work?
>>>  >=20
>>>  > Thank you.
>>>=20
>>>  Someone will have to write a redirector that greps in the notes for=
 the
>>>  hash of the corresponding SVN revision. Note that not all SVN revs =
are
>>>  present in git as such, as they might not make sense and have been
>>>  skipped.
>>>=20
>>>  % git log --notes --grep=3Drevision=3D537860\$ master
>>>  commit 69116835276115e2dbec1332f2070300e4905d76
>>>  Author: Jan Beich <jbeich@FreeBSD.org>
>>>  Date: 2020-06-04 00:49:09 +0000
>>>=20
>>>  graphics/mesa-devel: update to 20.1.b.1495
>>>=20
>>>  Changes: https://gitlab.freedesktop.org/mesa/mesa/-/compare/fb62e64=
2ae6...8252bb0ec6d
>>>=20
>>>  Notes:
>>>  svn path=3D/head/; revision=3D537860
>>>=20
>>>=20
>>>  So the redirector needs to run:
>>>  % git log --format=3D%H --notes --grep=3Drevision=3D537860\$ master=

>>>  69116835276115e2dbec1332f2070300e4905d76
>>>=20
>>>  and 301 to https://cgit-beta.freebsd.org/ports/commit/?id=3D6911683=
5276115e2dbec1332f2070300e4905d76 or
>>> https://cgit-beta.freebsd.org/ports/diff/graphics/mesa-devel/Makefil=
e?id=3D69116835276115e2dbec1332f2070300e4905d76
>>>  depending on a file path being present or whatever.
>>>=20
>>>  If a plugin in gitolite could do that translation, that would be gr=
eat.
>>>=20
>>>  hth
>>>  Uli
>>>  _______________________________________________
>>> freebsd-git@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-git
>>>  To unsubscribe, send any mail to "freebsd-git-unsubscribe@freebsd.o=
rg"

--
 Dan Langille
 dan@langille.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1cdd41a7-d3f0-4d18-8467-66166e00563b>