From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKGBFdqHx2DKhAAAgWs5BA (envelope-from ) for ; Mon, 14 Jun 2021 18:46:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mAfhENqHx2BaNgAAbx9fmQ (envelope-from ) for ; Mon, 14 Jun 2021 16:46:18 +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 E6F1135CCB for ; Mon, 14 Jun 2021 18:46:17 +0200 (CEST) Received: from localhost ([::1]:36940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lspj6-00081f-Nb for larch@yhetil.org; Mon, 14 Jun 2021 12:46:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lspis-00081K-26 for guix-patches@gnu.org; Mon, 14 Jun 2021 12:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lspir-0008NW-QD for guix-patches@gnu.org; Mon, 14 Jun 2021 12:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lspir-00070Y-Lo for guix-patches@gnu.org; Mon, 14 Jun 2021 12:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48971] [PATCH 0/2] Add SWH support for Hg repositories Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Jun 2021 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48971 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 48971@debbugs.gnu.org Received: via spool by 48971-submit@debbugs.gnu.org id=B48971.162368911223850 (code B ref 48971); Mon, 14 Jun 2021 16:46:01 +0000 Received: (at 48971) by debbugs.gnu.org; 14 Jun 2021 16:45:12 +0000 Received: from localhost ([127.0.0.1]:47723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lspi3-0006CI-F1 for submit@debbugs.gnu.org; Mon, 14 Jun 2021 12:45:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lspi1-00065C-Mr for 48971@debbugs.gnu.org; Mon, 14 Jun 2021 12:45:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51410) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsphv-0007eW-V1; Mon, 14 Jun 2021 12:45:03 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33576 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lspha-00052Z-18; Mon, 14 Jun 2021 12:45:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Mon, 14 Jun 2021 18:44:40 +0200 In-Reply-To: (Xinglu Chen's message of "Sat, 12 Jun 2021 13:52:23 +0200") Message-ID: <87k0mwwg3r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623689178; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=7FhV+JuLCw8kQdWCHeL72FGGU7U6k3GDXSqGd74YyQU=; b=D8JZ9YB8tZTSI0x2GnUyaJfbxqkD54jBgwuWl+lDp6XD5ScOxZ/kij9yTE92m8/luWgmQ1 m8nCcGwQPFjANUTv1H+fgzvCepH2yfizZgIm4RaJ/oCt+n70bkpBvNTDlc2Rj8Aw7qVquA 1L64S7XXjfo7G+KUzvIGU1StKOX6wQOIHUJnY0BR/UwmIvY8P1N7Y135LZt1B9CKohcG/G 07UqpCHQJgSSocWxavvU6mEXa+IxsLH+tplGbKnayqYS7JF132CrSvmCIOtAM88oWIvJdo MZPeh5sEm7QdD5EZToEfFaKoC5OgIWaREwIu4NanJ+RDq/UtcNG8bl/XsQQWfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623689178; a=rsa-sha256; cv=none; b=rvIyxcbx+2QmlzIm7nySZwuPhrFXT9d3kAJ6QHI7dHTkqTNwNgr+syilrAuXU2L55VGi/w LDKe/NBrzbd9zaZrg53Pg41XySaVuJsqadL5CMkAS1xMDeA5KPWVqeubGstffE4zgVEY85 mt4K4/YHXqtYFLMgB2MWXbQgnM1E1UqyKtUWpFiWEruu9CKIg1uZg5KuIk50AxXfLOQI0j Pw5BOIWobt+5WKpMHM+bO/7pm87fmKGzhHveeCFVI89FgZeiRC3vYa2vX0iRed0z/67Jrl EWe6/vb7biLa2JNJHxjqmtcbrKawWNd7yk6VyFedsc7Rs13ntQ2Krs4wHOKq3Q== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -2.92 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-Migadu-Queue-Id: E6F1135CCB X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: cVZ7hMs07w88 Hello, Xinglu Chen skribis: > Xinglu Chen (2): > swh: Support lookup of Hg tags. > hg-download: Support falling back to SWH. Pushed as 69d7333217ce85d9d1643a8349757b6b170d3b1f! Note that currently this only works for (1) repositories that are archived, and (2) origins that refer to hg tags, not commit IDs. I found an example that meets these criteria: python-openpyxl. :-) I commented out the other fallbacks in (guix hg-download) and ran: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build python-openpyxl -S --no-substitutes=20 The following derivation will be built: /gnu/store/71xjlgdqw50a76ycqrmjrqh7b4mdi5s7-python-openpyxl-3.0.5-checko= ut.drv building /gnu/store/71xjlgdqw50a76ycqrmjrqh7b4mdi5s7-python-openpyxl-3.0.5-= checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5w= a3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' Trying to download from Software Heritage... SWH: found revision 4d4e19e58314de481b98f4c239c3b3e9fd080613 with directory= at 'https://archive.softwareheritage.org/api/1/directory/fb5bbba156e6b8e2b= b94ea1dd5807ef2c8931864/' SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... SWH vault: requested bundle cooking, waiting for completion... --8<---------------cut here---------------end--------------->8--- It=E2=80=99s still waiting for the bundle=E2=80=A6 Regarding #2, there are some good news: is about implementing a mapping from =E2=80=9CVCS IDs=E2=80=9D (hg commit IDs in this case) to SWHI= Ds. Thus, eventually, =E2=80=98lookup-origin-revision=E2=80=99 should be able to take= an hg commit ID and to map it to an SWHID. That JSON API isn=E2=80=99t exposed yet. Thanks, Ludo=E2=80=99.