From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id HBUpBeDNAWQNogAAbAwnHQ (envelope-from ) for ; Fri, 03 Mar 2023 11:37:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SDdFBODNAWQJHwAAauVa8A (envelope-from ) for ; Fri, 03 Mar 2023 11:37:20 +0100 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 7EEFE12DC6 for ; Fri, 3 Mar 2023 11:37:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677839839; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=c9255oJeUzQLra/I16IyOxGZ3qOv4eB19pswlV/bigA=; b=MW7Q+1pO1d/+tKH3ZxQX6C3wqNr1XgnH28sn/0t+EPBq8EWW6UrKIG2GM2WXjz3m9xslPH wM7kB+U31Gujt+mbzxcjbyOKCwJfqdJaLQi20fZaHIrLpbHDNL5WtYvGrDcOlyIGE2Gqt4 E4tmbo/4lLFEUWMNcg9dAx/u3TFOl3yqleANcZxaevdhtnoLJjcwBbC3CXhQ7jdej1kfAW X3k4BBDrShwwlqrKv/rgRmZsz8MES8EqY5N39syigtpphsG02HiwkaOC39pJfiXvgZvxQE 7qMzKH+mkpaaDZjmLhLMvH1GXxGz1Xe+86ZwRl1P0VeMyzchW9pme/sdZgrQog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677839839; a=rsa-sha256; cv=none; b=ri1mhjXcPvx1K5z176uHeBa3SrgcMwpWXapqRNo7mzQ3S+Ut6NPhVQSQ5xEXzgYGNPeydm iS+FC24V1fWOOxxkXz/Eo17CWcLga9YW+bV52dp10dsKTl3ZjPkkM7qTefST2ImQKtp4Ac Rpgk1WJzWIx9vcLahgYWsU+AXwh/YvTpDWZxLFw/D6Itqp7ptpv41UTe8N1zQ6NPDsXK1c cG7ndjZkHcgAkYmDpPACNOxk3Tqib7jkzEqW+rbX4Ak7/0yohhvr6A4Glyf63l1Ns04nyM NosJd0CRQrwDw64Mm3ih51ONpNUQTLiIbvou9Xq/68UD0RPmwS1OWjKE3qd7mg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY2me-0000bK-W0; Fri, 03 Mar 2023 05:37:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY2mc-0000b4-Ul for guix-patches@gnu.org; Fri, 03 Mar 2023 05:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pY2mc-0007kY-KJ for guix-patches@gnu.org; Fri, 03 Mar 2023 05:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pY2mb-00073f-RF for guix-patches@gnu.org; Fri, 03 Mar 2023 05:37:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61930] [PATCH 0/1] Factorising git->origin function for imports. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Mar 2023 10:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61930 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61930@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167783980927110 (code B ref -1); Fri, 03 Mar 2023 10:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2023 10:36:49 +0000 Received: from localhost ([127.0.0.1]:59684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY2mO-00073C-UW for submit@debbugs.gnu.org; Fri, 03 Mar 2023 05:36:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:57774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY2mN-000734-22 for submit@debbugs.gnu.org; Fri, 03 Mar 2023 05:36:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY2mM-0008VZ-Nz for guix-patches@gnu.org; Fri, 03 Mar 2023 05:36:46 -0500 Received: from 12.mo581.mail-out.ovh.net ([178.33.107.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY2mL-0007ho-0R for guix-patches@gnu.org; Fri, 03 Mar 2023 05:36:46 -0500 Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.146.211]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 8B8AF270B9 for ; Fri, 3 Mar 2023 10:36:31 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-hg4sr (unknown [10.110.103.149]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id A76D71FE4F; Fri, 3 Mar 2023 10:36:29 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-6684bf9d7b-hg4sr with ESMTPSA id DZfALK3NAWR7KgEAPWOdjg (envelope-from ); Fri, 03 Mar 2023 10:36:29 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Fri, 03 Mar 2023 11:36:29 +0100 Message-ID: <87ilfi3yvm.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 14821064902514893412 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkfggtgesthdtredttddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeeugefgtdekvdeujefhfeeggfevjeehfffgjedvteeuheffheegueffhfdttdehheenucfkphepuddvjedrtddrtddruddpfeejrdehledrudegvddruddtheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepghhuihigqdhprghttghhvghssehgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedupdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=178.33.107.167; envelope-from=ngraves@ngraves.fr; helo=12.mo581.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Migadu-Spam-Score: -3.50 X-Spam-Score: -3.50 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 7EEFE12DC6 From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: x3fyK0+CY1Pk Hi Guix! While looking for creating a juliahub import script, I had to look on how other packages were downloading repositories, and some things could be factorised. I plan to use this new function for the juliahub importer I'm writing. I still need to experiment with it a bit, ensure that all cases are covered, but here's a preliminary patch to get some feedback. I believe such could also be done for other VCS, as Katherine Cox-Buday probably had in mind when writing the go importer. The code to download and hash from hg is already there in the cran "download" helper. Maybe we can also add some options to the original hg-fetch function from guix/build/hg.scm to factorize hg directly ? -- Best regards, Nicolas Graves