From owner-freebsd-git@freebsd.org Sun Jul 12 13:24:19 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 854CD36369A for ; Sun, 12 Jul 2020 13:24:19 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4SDM2MSPz4X5Y for ; Sun, 12 Jul 2020 13:24:19 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 50F5B3633FE; Sun, 12 Jul 2020 13:24:19 +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 50BC53633FD for ; Sun, 12 Jul 2020 13:24:19 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (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 4B4SDK6sy0z4X5X for ; Sun, 12 Jul 2020 13:24:17 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by mail-ot1-f54.google.com with SMTP id e90so7622648ote.1 for ; Sun, 12 Jul 2020 06:24:17 -0700 (PDT) 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=2yMyt9QJ3I1tg2F7hKgsXpENRHxq3BlEVc/QYeuhAUE=; b=PdQFiXXp2CcTCLnJyHPH1rIxoy2OhmtPRgb4xhJQx2lgkEQKVAwzwGMEHgfpgsfQdD HKwQ66IrSDt3Ja/RH9AIVtHXdLwhDM0ThEJk7EQ2J+APbsCm+X5GBP1oxduxlpySmsWi yexpWnlzbU87dzFAL74Qij7kIbMqq1BmK4xycdt0MlgRdczJEwAiQ654/Xj3ekgtHKAI B8BDtanVvU65Q2uNVVvAJydKuYlmDCY0H+1GNdpBiQwWQ8H+l9RdAld7HcPWWBiKwk5a bJayQuQcQxbz1nrgGsLJnYiUmptc/YfXHJ/LYSRbGi+YWgavXZ7W1j0IdFjhbzCYd49m 3ihA== X-Gm-Message-State: AOAM532n8D3EmeRpIIicU0mNid0WCLRYC8OpBMcp0M79rekDHgqrj7S5 ZVOAvxoOSreXXreG36mhPXQtyd75ZQ2iT88UFwoF2w== X-Google-Smtp-Source: ABdhPJwfY1e93dxBRfRvS81ETpDQ90TDkrk4mXVUL9peu0JZrBve3aUZ4AWRbFravZPaf+YECJqDnq9Gzqrgc3I8Apk= X-Received: by 2002:a9d:7551:: with SMTP id b17mr28264089otl.71.1594560256477; Sun, 12 Jul 2020 06:24:16 -0700 (PDT) MIME-Version: 1.0 References: <8B5D0824-F412-4067-B874-21F2EA6EAEE6@langille.org> <20200711094146.GB16439@acme.spoerlein.net> In-Reply-To: From: =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= Date: Sun, 12 Jul 2020 15:24:05 +0200 Message-ID: Subject: Re: What happens to old repo links? To: Warner Losh Cc: Dan Langille , git@freebsd.org X-Rspamd-Queue-Id: 4B4SDK6sy0z4X5X X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of uspoerlein@gmail.com designates 209.85.210.54 as permitted sender) smtp.mailfrom=uspoerlein@gmail.com X-Spamd-Result: default: False [-0.73 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-0.93)[-0.933]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[git@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.59)[-0.588]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.54:from]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.54:from]; NEURAL_HAM_MEDIUM(-0.76)[-0.763]; FORGED_SENDER(0.30)[uqs@freebsd.org,uspoerlein@gmail.com]; R_DKIM_NA(0.00)[]; R_MIXED_CHARSET(0.56)[subject]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[uqs@freebsd.org,uspoerlein@gmail.com]; 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 13:24:19 -0000 Good point, https://github.com/freebsd/git_conv/issues/20 On Sun, Jul 12, 2020 at 6:25 AM Warner Losh 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 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 wr= ote: > >> 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?annot= ate=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...8252bb0= ec6d >> >> 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=3D69116835276115e2dbec133= 2f2070300e4905d76 >> 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" >> >