From owner-freebsd-git@freebsd.org Sun Jul 12 04:25:24 2020 Return-Path: Delivered-To: freebsd-git@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 3C4AA354AC1 for ; Sun, 12 Jul 2020 04:25:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4DGX05Mcz42JT for ; Sun, 12 Jul 2020 04:25:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0322A354856; Sun, 12 Jul 2020 04:25:24 +0000 (UTC) Delivered-To: git@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 02E8B354854 for ; Sun, 12 Jul 2020 04:25:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 4B4DGV5VF0z42Fs for ; Sun, 12 Jul 2020 04:25:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x832.google.com with SMTP id g13so7574439qtv.8 for ; Sat, 11 Jul 2020 21:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OCYa0TaZ6mTSuWQ3mAXg29aH89XHS/c5Z52JnAyMHjg=; b=DINWCjfMBEg1fIF7Dc6BxGzvtQS0wLrzB1z+DLMx2uMgZk0eJBLIo9W6inJxKMMLAy 7ekCw1jRRGNSW3h+YDgmIpRkbpyIHN4dJ1++YHhZ7Pov5ZQ01wwvHatRFQKKjz9Z4+Y7 yQXiFEKoNOW2OiCD82rKdjsAzn1Xo0h/WQ51artEAKd3n0rzANy60ShvuLgManbG8bIQ MZXfrcsBw/E27j5YSKJITscyJuOak74N+0/U9ou4gRfMYzaCoqG6kz6qV6hgP69Ndwqw 3nZ1W+GuWsoZzH7RsEillvuo27+k8pUR7rwrvzVOngyJP/BHwDpBJV9vhISNFewJzfYU l/UA== 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=OCYa0TaZ6mTSuWQ3mAXg29aH89XHS/c5Z52JnAyMHjg=; b=Zji1+/RgAhlM7HNhseQ51E/xkedCMc46gyTYe8wfUzAHqbFm/m2kKSkbltv9CLjUBk J7j+/XHx57NYI/UMM7Hf9X7Q2he41ytQThuIVnXqWF2ItfH10okHzNsTNvD4icnffrNl uYO+vx3IPqEszMBEWR0k80AIjHvHCzq2b266Cn2ipTEvL5GYKXP1RiRFFeN4rbXwf3kg KE8xqfT2P/Q5pC7JnWM7UzEj1HrS2OPoZ0HhMU8aUbgpLBxp5i3WplQ4qgSA0W3po+zP cRdfHK+1XTvPKVlckcJweEmBc3XhsPkmcj74jkKaG0FVjt1adolPtZVeHawcUMsBGobz nQTw== X-Gm-Message-State: AOAM533p4F7l45kE//adZ1la3AIybFoA6GHpKPwf9D5piqfZFVM2aA3i hJz36PUQ9R31JRuYhgeBEQSbu+qnP95ybV2keJnFncYM4Ms= X-Google-Smtp-Source: ABdhPJz4Je5PuUZJemBwf00x+b+a3fmI8hl+NceOSIJvmQE+/tvhBxfxblxKbHpbpCvaaJ3CjwMG9ksyCFw21ZxEcv4= X-Received: by 2002:ac8:34e8:: with SMTP id x37mr80702245qtb.291.1594527921361; Sat, 11 Jul 2020 21:25:21 -0700 (PDT) MIME-Version: 1.0 References: <8B5D0824-F412-4067-B874-21F2EA6EAEE6@langille.org> <20200711094146.GB16439@acme.spoerlein.net> In-Reply-To: <20200711094146.GB16439@acme.spoerlein.net> From: Warner Losh Date: Sat, 11 Jul 2020 22:25:10 -0600 Message-ID: Subject: Re: What happens to old repo links? To: =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= Cc: Dan Langille , git@freebsd.org X-Rspamd-Queue-Id: 4B4DGV5VF0z42Fs X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=DINWCjfM; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::832) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.80 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.843]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.89)[-0.889]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[git@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.07)[-0.072]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::832:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 04:25:24 -0000 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 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 > 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" >