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 ms0.migadu.com with LMTPS id mGr3FBNjmmA5RAAAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 12:57:23 +0200 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 MLakEBNjmmAuHAAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 10:57:23 +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 0336524043 for ; Tue, 11 May 2021 12:57:23 +0200 (CEST) Received: from localhost ([::1]:43338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgQ4n-0000lQ-IA for larch@yhetil.org; Tue, 11 May 2021 06:57:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPbS-0004cy-MW for guix-patches@gnu.org; Tue, 11 May 2021 06:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgPbS-00024B-D4 for guix-patches@gnu.org; Tue, 11 May 2021 06:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgPbS-0005Yd-9X for guix-patches@gnu.org; Tue, 11 May 2021 06:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 May 2021 10:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48232 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 48232@debbugs.gnu.org Received: via spool by 48232-submit@debbugs.gnu.org id=B48232.162072880021326 (code B ref 48232); Tue, 11 May 2021 10:27:02 +0000 Received: (at 48232) by debbugs.gnu.org; 11 May 2021 10:26:40 +0000 Received: from localhost ([127.0.0.1]:35094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPb6-0005Xu-LQ for submit@debbugs.gnu.org; Tue, 11 May 2021 06:26:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPb5-0005Xe-02 for 48232@debbugs.gnu.org; Tue, 11 May 2021 06:26:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44818) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgPaz-0001ka-8U; Tue, 11 May 2021 06:26:33 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41820 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPay-0005Xd-Qq; Tue, 11 May 2021 06:26:33 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87k0oecj3a.fsf@yoctocell.xyz> Date: Tue, 11 May 2021 12:26:31 +0200 In-Reply-To: <87k0oecj3a.fsf@yoctocell.xyz> (Xinglu Chen's message of "Tue, 04 May 2021 22:58:01 +0200") Message-ID: <87lf8l36so.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=1620730643; 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=dnYkG+CxN7OuCTH+tipP814WDPGWTXkYqJ2t9tjOOGU=; b=ghTZNLgGqhKxZLpGukRYM3DZCJhqJibvD0k0cOEuJDTaczD4IU7lLkxCDRXiroZ4zE/mgi n0qUnmxecDz5j52M092P/qrWF0ucEKW7Va6F3NpLs4u2Ryy7tbzrjJOXDFH7hy9y39JdSj z+Oi3nivOndnfhgO8vKxatOrRwHGZodrTT//IAF+yIwiFP3WEeb7c02DoDLudG+vt6WSQl zQJJmPuphl3pCttlaQboSxZ1V2pcU8MCKc3GQOwSd4T4B8w6HIPWC4gAOSIqE3Y6SBzomY L5Tv7VhnuNFPgmVMwelorOqVCbnUj52qSp5MrAyKxL1huOazuhj8n12QVC7Zaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620730643; a=rsa-sha256; cv=none; b=uAIZoU60xl7bs2rGEu4nOBMxfjKYhwz7/jSFInWz67OafMXICh43iqjplxNYU0ADHPv64V q3N0WojVmgTWjXWHqCq8T7vUmTV+J7guEDHMD+4QQzn8i/4MPEdz4+ua4Y3vMv3PSU2wsx JhWQQo0R8ipDHV0tFo3R4bhz4hKO6gP86xejsucFncGVG8PKVYYrmTLniDfKOUSVqezUi2 X2ES0vLpPGMEpIKYrzOSySniHsQwybDT5U8VZ6juMbZxcYcgAwvCIfrOqCyQ/Q6X+aNAuh PaiaJXCIXgZfcYoIUGmzcEiSfIMFC4l7+Mwq6D19htbkU4vfyXYsB+8Czt2nzw== 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.95 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: 0336524043 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: sxms9ij/v+9v Hi, Xinglu Chen skribis: > The first patch adds the commitsigs extension for Mercurial, it allows > users to sign Mercurial changesets (equivalent to Git commits) with > GnuPG or OpenSSL. > > The second patch adds PYTHONPATH to the =E2=80=98native-search-paths=E2= =80=99 field of > Mercurial, this allows Mercurial to automatically find third-party > extensions (like commitsigs) installed in > /gnu/store/...-profile/lib/python3.8/site-packages/hgext3rd. By > default, it only looks at > /gnu/store/...-mercurial/lib/python3.8/site-packages/hgext3rd. Is /hgext3rd a convention that upstream recommends? > However, I am not sure this is the best approach since it messes with > PYTHONPATH, AFAIK there is no such things as a HGEXTENSIONS variable I > could set. Another problem is that I have to hardcode =E2=80=9Cpython3.8= =E2=80=9D, this > would obviously have to be updated if the default Python version gets > updated. I did try to do something like this: Messing up with PYTHONPATH is indeed not great since it =E2=80=9Cbelongs=E2= =80=9D to Python. Could we instead patch Mercurial so it honors a specific environment variable, like HG_EXTENSION_PATH? Thanks, Ludo=E2=80=99.