Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2020 22:25:10 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= <uqs@freebsd.org>
Cc:        Dan Langille <dan@langille.org>, git@freebsd.org
Subject:   Re: What happens to old repo links?
Message-ID:  <CANCZdfo=oHhUb=Hh9fK=OX4woQLUPO%2BRhVJLAWKCpaYuUAP7Yg@mail.gmail.com>
In-Reply-To: <20200711094146.GB16439@acme.spoerlein.net>
References:  <8B5D0824-F412-4067-B874-21F2EA6EAEE6@langille.org> <20200711094146.GB16439@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 server,
which can run indefinitely with a read-only svn repo...

Warner

On Sat, Jul 11, 2020 at 3:41 AM Ulrich Sp=C3=B6rlein <uqs@freebsd.org> wrot=
e:

> On Fri, 2020-07-10 at 20:52:35 -0400, Dan Langille wrote:
> > Hello,
> >
> > At present, we have links to old commits, such as:
> https://svnweb.freebsd.org/ports/head/graphics/mesa-devel/Makefile?annota=
te=3D537860
> >
> > In git, how will that work? How will we get to revision 537860?
> >
> > Similarly, for
> https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D537860
> >
> > How will that work?
> >
> > Thank you.
>
> 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.
>
> % git log --notes --grep=3Drevision=3D537860\$ master
> commit 69116835276115e2dbec1332f2070300e4905d76
> Author: Jan Beich <jbeich@FreeBSD.org>
> Date:   2020-06-04 00:49:09 +0000
>
>     graphics/mesa-devel: update to 20.1.b.1495
>
>     Changes:
> https://gitlab.freedesktop.org/mesa/mesa/-/compare/fb62e642ae6...8252bb0e=
c6d
>
> Notes:
>     svn path=3D/head/; revision=3D537860
>
>
> So the redirector needs to run:
> % git log --format=3D%H --notes --grep=3Drevision=3D537860\$ master
> 69116835276115e2dbec1332f2070300e4905d76
>
> and 301 to
> https://cgit-beta.freebsd.org/ports/commit/?id=3D69116835276115e2dbec1332=
f2070300e4905d76
> or
>
> https://cgit-beta.freebsd.org/ports/diff/graphics/mesa-devel/Makefile?id=
=3D69116835276115e2dbec1332f2070300e4905d76
> depending on a file path being present or whatever.
>
> If a plugin in gitolite could do that translation, that would be great.
>
> 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.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfo=oHhUb=Hh9fK=OX4woQLUPO%2BRhVJLAWKCpaYuUAP7Yg>