From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kEELFAg+eF91KQAA0tVLHw (envelope-from ) for ; Sat, 03 Oct 2020 09:02:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WKHdDwg+eF9zHQAAbx9fmQ (envelope-from ) for ; Sat, 03 Oct 2020 09:02:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3F6ED9404D1 for ; Sat, 3 Oct 2020 09:01:59 +0000 (UTC) Received: from localhost ([::1]:59162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOdQU-0007iu-4N for larch@yhetil.org; Sat, 03 Oct 2020 05:01:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOdOd-0006IW-1F for guix-patches@gnu.org; Sat, 03 Oct 2020 05:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOdOc-0004xi-MO for guix-patches@gnu.org; Sat, 03 Oct 2020 05:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOdOc-00022D-L4 for guix-patches@gnu.org; Sat, 03 Oct 2020 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by 'svn-fetch'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Oct 2020 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43442 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 43442@debbugs.gnu.org Received: via spool by 43442-submit@debbugs.gnu.org id=B43442.16017155507731 (code B ref 43442); Sat, 03 Oct 2020 09:00:02 +0000 Received: (at 43442) by debbugs.gnu.org; 3 Oct 2020 08:59:10 +0000 Received: from localhost ([127.0.0.1]:42963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOdNm-00020d-36 for submit@debbugs.gnu.org; Sat, 03 Oct 2020 04:59:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOdNk-00020Q-Hg for 43442@debbugs.gnu.org; Sat, 03 Oct 2020 04:59:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51867) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOdNf-0004mf-6V; Sat, 03 Oct 2020 04:59:03 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43598 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOdNe-0003GW-Cl; Sat, 03 Oct 2020 04:59:03 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200916081411.5801-1-zimon.toutoune@gmail.com> <20200916081642.6716-1-zimon.toutoune@gmail.com> <87o8lyj090.fsf@gnu.org> <86zh5iol1n.fsf@gmail.com> <87h7rocvkt.fsf@gnu.org> <877dsi44lu.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 03 Oct 2020 10:59:00 +0200 In-Reply-To: (zimoun's message of "Thu, 1 Oct 2020 22:26:28 +0200") Message-ID: <87y2knhei3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: YcKJW9iPlaOj Hi, zimoun skribis: > On Fri, 25 Sep 2020 at 10:56, Ludovic Court=C3=A8s wrote: > >> Note that the original svn revision number is discarded, AFAICS. > > No, it is not... but to find it one needs a bit of guidance by SWH folks.= :-) > > 1. With the URL, fetch: > https://archive.softwareheritage.org/api/1/origin/https://scm.gforge.inri= a.fr/anonscm/svn/mpfi/visit/latest/ > > 2. From #1 one gets 'snapshot' and fetch: > https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710dbc55= c1b308804fa1b5f51f0/ > > 3. From #3, one gets the 'target' and fetch: > https://archive.softwareheritage.org/api/1/revision/f7b445a6bdc38bf075f29= 265120ca49824f698ea/log/ > > And #3 lists all the revisions in SWH. Ah yes, under =E2=80=9Cextra_headers=E2=80=9D there=E2=80=99s the SVN revis= ion number. (guix swh) doesn=E2=80=99t expose =E2=80=9Cextra_headers=E2=80=9D yet, but once i= t does, we can walk snapshots until we find the SVN revision we=E2=80=99re looking for. --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonscm/sv= n/mpfi/") $3 =3D #< visits-url: "https://archive.softwareheritage.org/api/1/o= rigin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visits/" type: #f url: "= https://scm.gforge.inria.fr/anonscm/svn/mpfi"> scheme@(guile-user)> (origin-visits $3) $4 =3D (#< date: # origin: "https://scm.gfor= ge.inria.fr/anonscm/svn/mpfi" url: "https://archive.softwareheritage.org/ap= i/1/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visit/1/" snapshot-= url: "https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710d= bc55c1b308804fa1b5f51f0/" status: full number: 1>) scheme@(guile-user)> (visit-snapshot (car $4)) $5 =3D #< branches: (#< name: "HEAD" target-type: revisio= n target-url: "https://archive.softwareheritage.org/api/1/revision/f7b445a6= bdc38bf075f29265120ca49824f698ea/">)> --8<---------------cut here---------------end--------------->8--- So the next step is to augment (guix swh) with a =E2=80=98lookup-subversion-revision=E2=80=99 procedure. Thanks for investigating! Ludo=E2=80=99.