From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GFLNExCEmmB1iQAAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 15:18:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gBZ9DxCEmmD/fQAA1q6Kng (envelope-from ) for ; Tue, 11 May 2021 13:18:08 +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 BE1032D0E6 for ; Tue, 11 May 2021 15:18:07 +0200 (CEST) Received: from localhost ([::1]:39142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgSH0-0002B5-Sd for larch@yhetil.org; Tue, 11 May 2021 09:18:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgSGw-0002Ao-FS for guix-patches@gnu.org; Tue, 11 May 2021 09:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgSGw-0003Xa-4i for guix-patches@gnu.org; Tue, 11 May 2021 09:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgSGw-0006K8-0l for guix-patches@gnu.org; Tue, 11 May 2021 09:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 May 2021 13:18:01 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 48232@debbugs.gnu.org Received: via spool by 48232-submit@debbugs.gnu.org id=B48232.162073904823444 (code B ref 48232); Tue, 11 May 2021 13:18:01 +0000 Received: (at 48232) by debbugs.gnu.org; 11 May 2021 13:17:28 +0000 Received: from localhost ([127.0.0.1]:35369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSGN-00065s-La for submit@debbugs.gnu.org; Tue, 11 May 2021 09:17:27 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:58764 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSGL-0005zd-Gk for 48232@debbugs.gnu.org; Tue, 11 May 2021 09:17:26 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620739039; bh=MiBHjv79bbgLWdXHOzrtYhgmRGDVJ3FseVilYL7mS2I=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=T6G6R3UIva95HDoNt4D7pG2IqJj9SMhAx7atDZ9RejsZjXnUWqhkE+lmPyFTkIdlQ Tu1ftKWToIXBuzXuNJ5cN2194RdWWDY+JctQicRgHTJ2l/z7zdiWlI+lcU/7VAub1K OCSG28woZpoFyF35+FZ7q5X27PGyqm6uJGxygVbc= In-Reply-To: <87zgx1zc67.fsf@gnu.org> References: <87k0oecj3a.fsf@yoctocell.xyz> <87lf8l36so.fsf_-_@gnu.org> <87bl9hh5nw.fsf@yoctocell.xyz> <87zgx1zc67.fsf@gnu.org> Date: Tue, 11 May 2021 15:17:19 +0200 Message-ID: <877dk5h0kg.fsf@yoctocell.xyz> 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=1620739088; 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:dkim-signature; bh=tlk/oKxhbrYx5JxrKlUJjYzqMfltOpRyudxh+iVxt3s=; b=T4x08ENmTORMp6gDAEMhDqhENRXuPWlWYcjwotZe75KaUeyPsh2xKDiUDSF4eSTDE61wLX DkQ+K9w+tvenuSPuBDCcZwdOG8DHZNcc/tMDmBAXcKDSs2IelaxlMBS9i/7efAI0qToYDE xy/ge8ioE7kU/V/PwZrEcvGeXRZvVlKBx7lzVtHt/ATLckeMpYj7TiGKBMa8eSYzqmTjn+ H0VJQrxHkcF9DnnMH2yttNnyh2s1S01IewdeqvF+zjbpHnWva2iST05wyW2X+GGRs75xAR tUUOHp+/3RgsXW78AizYHycM2R0G6etn10OE7Zqo6Ttc8Nf1k0lPkq0lA8gEkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620739088; a=rsa-sha256; cv=none; b=iQ5bYCc9LsGYfSM+b0tcqkDoUQmsbfQ9paJJQsQ0RL5DtCygHlSylcUCjGFyI1VPJHJIn/ shxUbwd+r9kxOp1GYJaiCLVEMiMisAyl9Q2fBJzK79975szCvQf6jk2+brcz6vp5EpWTOO PaqY00ZIzdITs54KBllf/SV6RCdno6PuAC1gdC9FvlzSaC29lOPqUdVqOxERc333PZGEll +jQ1Akk2y+lbNeDDWikiCHCxkZJDLnX7Mp5UHPw6urevyOUMxfv4U1aI8kzaaQRCFSW6CA +/65rslnLYoBEOlXdqpB6WdKUFc83kA74KnC8/J3+4N7k5Z+E7d2GDeUDJcC2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=T6G6R3UI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=T6G6R3UI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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: BE1032D0E6 X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: x1k7tTXP8i2M On Tue, May 11 2021, Ludovic Court=C3=A8s wrote: >>>> 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=9Cpython= 3.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=9Cbelong= s=E2=80=9D to >>> Python. >>> >>> Could we instead patch Mercurial so it honors a specific environment >>> variable, like HG_EXTENSION_PATH? >> >> I am not familiar with the Mercurial codebase, but I guess we could try. >> Or perhaps we could wrap the =E2=80=98hg=E2=80=99 binary to set PYTHONPA= TH so it finds >> the extensions. > > I think wrapping is not an option because the wrapper doesn=E2=80=99t kno= w where > the profile is. Oh, right. > Let=E2=80=99s see if you can adjust hg to honor a new environment variabl= e, > and if not, we=E2=80=99ll see=E2=80=A6 Hmm, I will try to see what I can do.