From unknown Sat Aug 16 20:56:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48232 <48232@debbugs.gnu.org> To: bug#48232 <48232@debbugs.gnu.org> Subject: Status: [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. Reply-To: bug#48232 <48232@debbugs.gnu.org> Date: Sun, 17 Aug 2025 03:56:36 +0000 retitle 48232 [PATCH 0/2] Add mercurial-commitsigs and some changes to Merc= urial. reassign 48232 guix-patches submitter 48232 Xinglu Chen severity 48232 normal tag 48232 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 04 16:58:09 2021 Received: (at submit) by debbugs.gnu.org; 4 May 2021 20:58:09 +0000 Received: from localhost ([127.0.0.1]:55398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le27N-0008SN-Dn for submit@debbugs.gnu.org; Tue, 04 May 2021 16:58:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:44184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le27K-0008SH-IT for submit@debbugs.gnu.org; Tue, 04 May 2021 16:58:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le27K-0004Iu-9n for guix-patches@gnu.org; Tue, 04 May 2021 16:58:06 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:51194 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le27I-0001rN-KD for guix-patches@gnu.org; Tue, 04 May 2021 16:58:06 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620161882; bh=40JRkgm+CEEIy8jmLZGTt1lKekEue6QMC1JHSz5b/gU=; h=From:To:Subject:References:Date; b=cXtwu1QBRyv43vEgTr1tK5wmv4rX5fCrsIB9O6VfFYaoH3YrW4eoS3TZwrWbS6OmW 5Ad4TzxAetEC5XeMKG9FIJnAZSRC+DSadpQxo3t366bgarwq8k9CcQ9L1Vzv7k8vJ3 ONWd2n0hdSE56jlHPQE7oMknYWCoie+ZZmBnVk7c= To: guix-patches@gnu.org Subject: [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. References: Date: Tue, 04 May 2021 22:58:01 +0200 Message-ID: <87k0oecj3a.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 34 X-Spam_score: 3.4 X-Spam_bar: +++ X-Spam_report: (3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=1.997, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 3.2 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 ‘native-search-paths’ field of Mercurial, this allows Mercurial to automatically find third-party extensions (like commitsigs) installed in /gnu/store/...-p [...] Content analysis details: (3.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 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. 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: #+begin_src scheme (string-append "lib/python" (string-join (drop-right (string-split (package-version python) #\.) 1) ".") "/site-packages/hgext3rd") #+end_src but it just gave me a confusing error message when trying to build it; it worked fine if I hit {C-x C-e} in Emacs, though. What we could do instead is to delegate the work of installing Mercurial extensions to Guix Home[1] (I am currently working on adding a service for Mercurial[2]) and add a =E2=80=98mercurial-extension-file-path=E2=80=99= key to the =E2=80=98properties=E2=80=99 field of Mercurial extensions so Guix Home can= tell Mercurial where to find the extension by the relevant lines in hgrc. We could have a package definition like this: #+begin_src scheme (package (name "mercurial-commitsigs") ... (properties '((mercurial-extension-file-path . "commitsigs.py")))) #+end_src hgrc: #+begin_src [extensions] commitsigs =3D /gnu/store/...-mercurial-commitsigs/commitsigs.py #+end_src [1]: https://yhetil.org/guix-devel/878s6u2pco.fsf@trop.in/ [2]: https://lists.sr.ht/~abcdw/rde-devel/patches/22421 Xinglu Chen (2): gnu: Add mercurial-commitsigs. gnu: mercurial: Add PYTHONPATH to =E2=80=98native-search-paths=E2=80=99. gnu/packages/version-control.scm | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) base-commit: aa7eeabe9a782afc2535581298990050d16b1895 --=20 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Tue May 04 17:00:16 2021 Received: (at 48232) by debbugs.gnu.org; 4 May 2021 21:00:17 +0000 Received: from localhost ([127.0.0.1]:55419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le29Q-0008W8-K5 for submit@debbugs.gnu.org; Tue, 04 May 2021 17:00:16 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59508 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le29O-0008Vw-QU for 48232@debbugs.gnu.org; Tue, 04 May 2021 17:00:15 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620162004; bh=mK8am1Rf+eMxQkhagXYXa/9vgPgK6x66adIS+6cRTDQ=; h=From:To:Subject:In-Reply-To:References:Date; b=HJ0hDV6mKNs6Z2NQRKdEGppufHtnesK4DwSPio7WTyYFXOb4RWSDwkvYg7PULenF3 +ei3PpsxZiWnjpLKwHpS8gEhNXFsa81M3EXPaysTlmds0Utx6M9ZLGh2PKjhhD2yuL zH6kqpdwO95zGH49XzJnqom5LYXlwP66LceUb5qE= To: 48232@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add mercurial-commitsigs. In-Reply-To: References: Message-Id: Date: Tue, 04 May 2021 23:00:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/version-control.scm (mercurial-commitsigs): New variable. --- Note: I am using ‘git-version’ and ‘git-file-name’, maybe we should add the equivalent procedures in (guix hg-downl [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 48232 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/version-control.scm (mercurial-commitsigs): New variable. --- Note: I am using ‘git-version’ and ‘git-file-name’, maybe we should add the equivalent procedures in (guix hg-downl [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/packages/version-control.scm (mercurial-commitsigs): New variable. --- Note: I am using =E2=80=98git-version=E2=80=99 and =E2=80=98git-file-name= =E2=80=99, maybe we should add the equivalent procedures in (guix hg-download) ? gnu/packages/version-control.scm | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 0cad83c4b0..3a1cb33fc3 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -62,6 +62,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix hg-download) + #:use-module (guix build python-build-system) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -88,6 +89,7 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages groff) #:use-module (gnu packages guile) @@ -1741,6 +1743,67 @@ and offers an easy and intuitive interface.") history. It implements the changeset evolution concept for Mercurial.") (license license:gpl2))) =20 +(define-public mercurial-commitsigs + ;; Latest tag is 11 years old. + (let ((changeset "b53eb6862bff") + (revision "0")) + (package + (name "mercurial-commitsigs") + (version (git-version "0.1.0" revision changeset)) + (source (origin + (method hg-fetch) + (uri (hg-reference + (url "https://foss.heptapod.net/mercurial/commitsigs= ") + (changeset changeset))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "059gm66q06m6ayl4brsc517zkw3ahmz249b6xm1m32ac5y24wb9x"))= )) + (build-system copy-build-system) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%copy-build-system-modules) + #:modules ((srfi srfi-1) + (guix build python-build-system) + ;; Don't use `%copy-build-system-modules' because + ;; `standard-phases' from (guix build gnu-build-system) + ;; shadows the one from (guix build copy-build-system), + ;; which is the one we actually want. + (guix build copy-build-system) + ((guix build gnu-build-system) #:prefix gnu) + (guix build utils) + (guix build gremlin) + (ice-9 ftw) + (guix elf)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((gpg (string-append (assoc-ref inputs "gnupg") + "/bin/gpg")) + (openssl (string-append (assoc-ref inputs "openssl") + "/bin/openssl"))) + (substitute* "commitsigs.py" + (("b'gpg',") (string-append "b'" gpg "',")) + (("b'openssl',") (string-append "b'" openssl "',"))))))) + #:install-plan + `(("commitsigs.py" ,(string-append "lib/python" + (python-version + (assoc-ref %build-inputs "pyt= hon")) + "/site-packages/hgext3rd/commi= tsigs.py"))))) + (native-inputs + `(("python" ,python))) + (inputs + `(("gnupg" ,gnupg) + ("openssl" ,openssl))) + (home-page "https://foss.heptapod.net/mercurial/commitsigs") + (synopsis "Automatic signing of changeset hashes") + (description "This package provides a Mercurial extension for signing +the changeset hash of commits. The signure is embedded directly in the +changeset itself; there won't be any extra commits. Either GnuPG or OpenS= SL +can be used for signing.") + (license license:gpl3+)))) + (define-public neon (package (name "neon") --=20 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Tue May 04 17:00:23 2021 Received: (at 48232) by debbugs.gnu.org; 4 May 2021 21:00:23 +0000 Received: from localhost ([127.0.0.1]:55422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le29W-0008WN-VA for submit@debbugs.gnu.org; Tue, 04 May 2021 17:00:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59522 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le29V-0008W7-IH for 48232@debbugs.gnu.org; Tue, 04 May 2021 17:00:22 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620162010; bh=TNq2Qn4Rnvr11l0a8nEMlKc8MZobgBQrus71J6hn9t4=; h=From:To:Subject:In-Reply-To:References:Date; b=VrxXS8eT9p5gCaZqLotLxzKcDclX2K+G4JXIlJ/GKyYPn+mUj+j0bPmi25QJtiyFW wL/org84xBv7AGtksX4UtirL3GtQwxDoLiCDGih5afJyWQyJMUKGVcwloEpzlOg8uu JLfq1fGNyDyDnv16zPprqIiVAQQF8xnyWM5zBgWk= To: 48232@debbugs.gnu.org Subject: [PATCH 2/2] =?UTF-8?q?gnu:=20mercurial:=20Add=20PYTHONPATH=20to?= In-Reply-To: References: Message-Id: Date: Tue, 04 May 2021 23:00:10 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This will make Mercurial be able to find third-party extensions. * gnu/packages/version-control.scm (mercurial)[native-search-paths]: Add PYTHONPATH. --- gnu/packages/version-control.scm | 5 +++++ 1 file changed, 5 insertions(+) Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 48232 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This will make Mercurial be able to find third-party extensions. * gnu/packages/version-control.scm (mercurial)[native-search-paths]: Add PYTHONPATH. --- gnu/packages/version-control.scm | 5 +++++ 1 file changed, 5 insertions(+) Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This will make Mercurial be able to find third-party extensions. * gnu/packages/version-control.scm (mercurial)[native-search-paths]: Add PYTHONPATH. --- gnu/packages/version-control.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 3a1cb33fc3..9711516609 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1709,6 +1709,11 @@ execution of any hook written in any language before every commit.") `(("python-nose" ,python-nose) ("unzip" ,unzip) ("which" ,which))) + ;; Find third-party extensions. + (native-search-paths + (list (search-path-specification + (variable "PYTHONPATH") + (files '("lib/python3.8/site-packages/hgext3rd"))))) (home-page "https://www.mercurial-scm.org/") (synopsis "Decentralized version control system") (description -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 06:26:40 2021 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: bug#48232: [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. 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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 07:27:23 2021 Received: (at 48232) by debbugs.gnu.org; 11 May 2021 11:27:23 +0000 Received: from localhost ([127.0.0.1]:35184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgQXr-0000z7-5t for submit@debbugs.gnu.org; Tue, 11 May 2021 07:27:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:56556 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgQXq-0000yu-7n for 48232@debbugs.gnu.org; Tue, 11 May 2021 07:27:22 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620732436; bh=fDbM7aLF/RtXxIqlQejwBsc+D5ZuwBIvE1HffNVAGfg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=JuEp+zFJYtlAvmi2OkbLarTXme4yXUfxJ+8hyU9/9Dz1f/wlhH2l+Ypp3VLm1jMTp fXZ1nVBMkrLIFZIPoXN5+CgH+QnqlRbLBfp885S9xDqqgRcLAcsxt8hQTy0G9x8CKd I/OCw7KvGDQsDwKwj0orQKX1Zj5Ji98XuvQgFlvI= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. In-Reply-To: <87lf8l36so.fsf_-_@gnu.org> References: <87k0oecj3a.fsf@yoctocell.xyz> <87lf8l36so.fsf_-_@gnu.org> Date: Tue, 11 May 2021 13:27:15 +0200 Message-ID: <87bl9hh5nw.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> The second patch adds PYTHONPATH to the ‘native-search-paths’ field of >> Mercurial, this allows Mercurial to automatically find third-pa [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> The second patch adds PYTHONPATH to the ‘native-search-paths’ field of >> Mercurial, this allows Mercurial to automatically find third-pa [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On Tue, May 11 2021, Ludovic Court=C3=A8s wrote: > Hi, > > Xinglu Chen skribis: > >> 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? I don=E2=80=99t think they mention it in their docs, but the hgext3rd/ dire= ctory already contained one file (__init__.py), and I have seen one Mercurial extension that put their Python files in a hgext3rd/ directory[1]. >> 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? 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 PYTHONPATH = so it finds the extensions. [1]: https://foss.heptapod.net/mercurial/hg-credentials From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 08:29:32 2021 Received: (at 48232) by debbugs.gnu.org; 11 May 2021 12:29:32 +0000 Received: from localhost ([127.0.0.1]:35264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRW0-0004qF-CY for submit@debbugs.gnu.org; Tue, 11 May 2021 08:29:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRVy-0004q3-AO for 48232@debbugs.gnu.org; Tue, 11 May 2021 08:29:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47516) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgRVs-0006Ry-Rk; Tue, 11 May 2021 08:29:24 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42548 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgRVp-00081b-OA; Tue, 11 May 2021 08:29:24 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. References: <87k0oecj3a.fsf@yoctocell.xyz> <87lf8l36so.fsf_-_@gnu.org> <87bl9hh5nw.fsf@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Tue, 11 May 2021 14:29:20 +0200 In-Reply-To: <87bl9hh5nw.fsf@yoctocell.xyz> (Xinglu Chen's message of "Tue, 11 May 2021 13:27:15 +0200") Message-ID: <87zgx1zc67.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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Xinglu Chen skribis: > On Tue, May 11 2021, Ludovic Court=C3=A8s wrote: > >> Hi, >> >> Xinglu Chen skribis: >> >>> 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? > > I don=E2=80=99t think they mention it in their docs, but the hgext3rd/ di= rectory > already contained one file (__init__.py), and I have seen one Mercurial > extension that put their Python files in a hgext3rd/ directory[1]. OK, sounds good. >>> 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? > > 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 PYTHONPAT= H so it finds > the extensions. I think wrapping is not an option because the wrapper doesn=E2=80=99t know = where the profile is. Let=E2=80=99s see if you can adjust hg to honor a new environment variable, and if not, we=E2=80=99ll see=E2=80=A6 Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 09:17:27 2021 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= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. 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-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Ludovic Courtès 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 [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Ludovic Courtès 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 [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 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. From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 05:21:57 2021 Received: (at 48232) by debbugs.gnu.org; 12 May 2021 09:21:57 +0000 Received: from localhost ([127.0.0.1]:38175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgl41-0002cn-Gq for submit@debbugs.gnu.org; Wed, 12 May 2021 05:21:57 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:56270 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgl3z-0002cO-5R for 48232@debbugs.gnu.org; Wed, 12 May 2021 05:21:56 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620811304; bh=4aeCUzwQ4NS+IMWblhKrIuhY6ms4FekX//3t7BCc1GI=; h=From:To:Cc:Subject:In-Reply-To:Date; b=IaULm6UhHBBIKfywMstiLmbKC9qT79GLx1WHCpWaAnAexLZ0u7g+2WppXg/eV2EO5 f9xgJEpiZ0+BOzcylm7qVtAY250nXJe3pKoO22HjlprYlkEwGbatnhLPUHcvK0W2rh UcPoJuhWh1UTZ7OpqAmSa0UG6QmJles1FpWbl69U= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. In-Reply-To: <877dk5h0kg.fsf@yoctocell.xyz> Date: Wed, 12 May 2021 11:21:43 +0200 Message-ID: <874kf8cno8.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Xinglu Chen wrote: >> Let’s see if you can adjust hg to honor a new environment variable, >> and if not, we’ll see… > > Hmm, I will try to see what I can do. I am no Python expert, but Mercurial is able to load the commitsigs.py module when I applying the attached patch and putting the following in ~/.config/hg/hgrc. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, May 11 2021, Xinglu Chen wrote: >> Let’s see if you can adjust hg to honor a new environment variable, >> and if not, we’ll see… > > Hmm, I will try to see what I can do. I am no Python expert, but Mercurial is able to load the commitsigs.py module when I applying the attached patch and putting the following in ~/.config/hg/hgrc. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, May 11 2021, Xinglu Chen wrote: >> Let=E2=80=99s see if you can adjust hg to honor a new environment variab= le, >> and if not, we=E2=80=99ll see=E2=80=A6 > > Hmm, I will try to see what I can do. I am no Python expert, but Mercurial is able to load the commitsigs.py module when I applying the attached patch and putting the following in ~/.config/hg/hgrc. [extensions] commitsigs =3D=20 However, two of the tests are failing, they are related to multiple people trying to push to the same repo at the same time. I don=E2=80=99t k= now why they would fail, and I don=E2=80=99t know if my patch will break things= in the =E2=80=9Creal world=E2=80=9D. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=mercurial-hg-extension-path.patch Content-Description: hg-extension-path-patch This is needed to make Mercurial read the HGEXTENSIONPATH to detect third-party extensions. It is called HGEXTENSIONPATH and not HG_EXTENSION_PATH to keep it consistent with other environment variables for Mercurial, e.g. HGENCODINGAMBIGUOUS, HGEDITOR ... Hopefully I or someone else will get this into Mercurial proper. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -13,6 +13,7 @@ import imp import inspect import os +import sys from .i18n import ( _, @@ -108,6 +109,8 @@ def _importh(name): """import and return the module""" + # Read HGEXTENSIONPATH environment variable when import extensions. + sys.path.append(os.getenv("HGEXTENSIONPATH")) mod = __import__(pycompat.sysstr(name)) components = name.split(b'.') for comp in components[1:]: --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 16:56:24 2021 Received: (at 48232) by debbugs.gnu.org; 12 May 2021 20:56:24 +0000 Received: from localhost ([127.0.0.1]:40723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgvu3-0002Iz-Ud for submit@debbugs.gnu.org; Wed, 12 May 2021 16:56:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgvtz-0002Ik-M5 for 48232@debbugs.gnu.org; Wed, 12 May 2021 16:56:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44346) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgvtt-00089x-L7; Wed, 12 May 2021 16:56:13 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41122 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgvtt-000170-9F; Wed, 12 May 2021 16:56:13 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. References: <874kf8cno8.fsf@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Wed, 12 May 2021 22:56:11 +0200 In-Reply-To: <874kf8cno8.fsf@yoctocell.xyz> (Xinglu Chen's message of "Wed, 12 May 2021 11:21:43 +0200") Message-ID: <87k0o3u0wk.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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi, Xinglu Chen skribis: [...] > However, two of the tests are failing, they are related to multiple > people trying to push to the same repo at the same time. I don=E2=80=99t= know > why they would fail, and I don=E2=80=99t know if my patch will break thin= gs in > the =E2=80=9Creal world=E2=80=9D. > > This is needed to make Mercurial read the HGEXTENSIONPATH to detect > third-party extensions. It is called HGEXTENSIONPATH and not > HG_EXTENSION_PATH to keep it consistent with other environment variables = for > Mercurial, e.g. HGENCODINGAMBIGUOUS, HGEDITOR ... Hopefully I or someone= else > will get this into Mercurial proper. > > diff --git a/mercurial/extensions.py b/mercurial/extensions.py > --- a/mercurial/extensions.py > +++ b/mercurial/extensions.py > @@ -13,6 +13,7 @@ > import imp > import inspect > import os > +import sys >=20=20 > from .i18n import ( > _, > @@ -108,6 +109,8 @@ >=20=20 > def _importh(name): > """import and return the module""" > + # Read HGEXTENSIONPATH environment variable when import extensions. > + sys.path.append(os.getenv("HGEXTENSIONPATH")) Perhaps you need to handle the case where HGEXTENSIONPATH is undefined? (This could explain the test failures that you see, no?) Also, I=E2=80=99m no Pythonista, but if =E2=80=98sys.path=E2=80=99 is a lis= t, then you have to split the value of HGEXTENSIONPATH on colons. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri May 14 07:52:13 2021 Received: (at 48232) by debbugs.gnu.org; 14 May 2021 11:52:13 +0000 Received: from localhost ([127.0.0.1]:45203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhWMW-0003rH-R0 for submit@debbugs.gnu.org; Fri, 14 May 2021 07:52:12 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:33444 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhWMU-0003r1-Pm for 48232@debbugs.gnu.org; Fri, 14 May 2021 07:52:11 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620993124; bh=pGfTmEEm4PvM70CXXAiP/LlYJIjbk6ct9lQFo6XK6hM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=BB8MHM5j73w8qFT14GzpVKCmHgEOyQT/LLaj8PREYD1qrMqlGq9f9tjO99SVaFeOp qU9spBX8dSPROhRVGnseUQTYR6nuTXBcnVeei3k2cCy/huuUYp0FP4io5uEG72v0iO IlBYmqmAimJRZDEy4NxEH1SnW2m1PoYA2sde5JF8= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#48232] [PATCH 0/2] Add mercurial-commitsigs and some changes to Mercurial. In-Reply-To: <87k0o3u0wk.fsf@gnu.org> References: <874kf8cno8.fsf@yoctocell.xyz> <87k0o3u0wk.fsf@gnu.org> Date: Fri, 14 May 2021 13:52:03 +0200 Message-ID: <8735upzg64.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Wed, May 12 2021, Ludovic Courtès wrote: > Perhaps you need to handle the case where HGEXTENSIONPATH is undefined? > (This could explain the test failures that you see, no?) That could be the case. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Wed, May 12 2021, Ludovic Courtès wrote: > Perhaps you need to handle the case where HGEXTENSIONPATH is undefined? > (This could explain the test failures that you see, no?) That could be the case. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On Wed, May 12 2021, Ludovic Court=C3=A8s wrote: > Perhaps you need to handle the case where HGEXTENSIONPATH is undefined? > (This could explain the test failures that you see, no?) That could be the case. > Also, I=E2=80=99m no Pythonista, but if =E2=80=98sys.path=E2=80=99 is a l= ist, then you have to > split the value of HGEXTENSIONPATH on colons. Good point, will do that. From debbugs-submit-bounces@debbugs.gnu.org Sat May 15 05:17:18 2021 Received: (at 48232) by debbugs.gnu.org; 15 May 2021 09:17:18 +0000 Received: from localhost ([127.0.0.1]:47552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQA-00068n-HN for submit@debbugs.gnu.org; Sat, 15 May 2021 05:17:18 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59834 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQ7-00068N-Qo for 48232@debbugs.gnu.org; Sat, 15 May 2021 05:17:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621070230; bh=rRiHQZTd2nnobDH2w/7pN7mLdjUSlUwKDlDtt5YP/fM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=OOUp6D1gLTkQTigrNM3+Zj6WrVMzDzrUY4HjiqqhO8GEjmb2Ortu09lVWpOKKZfFU oXE7z/03P2e98zEcOBzlB8k6RCePsSSgiR7MgQyZjGj0RTAJ7OUrpdYJWoEMAg0dcT 7PZ45DLRH3ORG9nH12OVWVQs4Ugw/mRUPhBYfOq8= To: 48232@debbugs.gnu.org Subject: [PATCH v2 0/2] Add hg-commitsigs and some changes to Mercurial. In-Reply-To: <87k0oecj3a.fsf@yoctocell.xyz> References: <87k0oecj3a.fsf@yoctocell.xyz> Message-Id: Date: Sat, 15 May 2021 11:17:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Changes since v1: * Patch Mercurial to make it read the HGEXTENSIONPATH environment variable to make it load third-party extensions. * Rename ‘mercurial-commitsigs’ to ‘hg-commitsigs’ because to keep things more consistent (we already have ‘python-hg-evolve’, not sure if the ‘python-’ prefix is necessary, though). Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Changes since v1: * Patch Mercurial to make it read the HGEXTENSIONPATH environment variable to make it load third-party extensions. * Rename ‘mercurial-commitsigs’ to ‘hg-commitsigs’ because to keep things more consistent (we already have ‘python-hg-evolve’, not sure if the ‘python-’ prefix is necessary, though). Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Changes since v1: * Patch Mercurial to make it read the HGEXTENSIONPATH environment variable to make it load third-party extensions. * Rename =E2=80=98mercurial-commitsigs=E2=80=99 to =E2=80=98hg-commitsigs= =E2=80=99 because to keep things more consistent (we already have =E2=80=98python-hg-evolve=E2=80= =99, not sure if the =E2=80=98python-=E2=80=99 prefix is necessary, though). Xinglu Chen (2): gnu: Add hg-commitsigs. gnu: mercurial: Patch to make it read HGEXTENSIONPATH. gnu/local.mk | 1 + .../patches/mercurial-hg-extension-path.patch | 29 ++++++++ gnu/packages/version-control.scm | 69 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 gnu/packages/patches/mercurial-hg-extension-path.patch base-commit: fbb099a4481ce682bdaaaffea619c5273fd0d3b0 --=20 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat May 15 05:17:23 2021 Received: (at 48232) by debbugs.gnu.org; 15 May 2021 09:17:23 +0000 Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQE-000695-OQ for submit@debbugs.gnu.org; Sat, 15 May 2021 05:17:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59842 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQ9-00068Q-9W for 48232@debbugs.gnu.org; Sat, 15 May 2021 05:17:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621070231; bh=mJraFbxe1UGteJxmO/OyUbstNTgWE1GCWdgXGw6WGBM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=U5a0Uy9eTBFBBygUlxsaRLAVthfDTN9I3nRAob4bm8vZNj+qm0m4dq5ivhgjJpoRI HzkyuLQMB5aL1YMwn0a/kUcH4Xe7EkJmq42vvK6uAQnbMNbK62Xar6ydfX4rKZK2E7 gqNyBp1li3+LUD17Wlr36ixs8xEFJSv8CqCXKP5g= To: 48232@debbugs.gnu.org Subject: [PATCH v2 1/2] gnu: Add hg-commitsigs. In-Reply-To: References: <87k0oecj3a.fsf@yoctocell.xyz> Message-Id: Date: Sat, 15 May 2021 11:17:11 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/version-control.scm (hg-commitsigs): New variable. --- gnu/packages/version-control.scm | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5438f6349c..1e55c73c0c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -6 [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/version-control.scm (hg-commitsigs): New variable. --- gnu/packages/version-control.scm | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5438f6349c..1e55c73c0c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -6 [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/packages/version-control.scm (hg-commitsigs): New variable. --- gnu/packages/version-control.scm | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5438f6349c..1e55c73c0c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -62,6 +62,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix hg-download) + #:use-module (guix build python-build-system) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -88,6 +89,7 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages groff) #:use-module (gnu packages guile) @@ -1716,6 +1718,67 @@ interface.") history. It implements the changeset evolution concept for Mercurial.") (license license:gpl2))) +(define-public hg-commitsigs + ;; Latest tag is 11 years old. + (let ((changeset "b53eb6862bff") + (revision "0")) + (package + (name "hg-commitsigs") + (version (git-version "0.1.0" revision changeset)) + (source (origin + (method hg-fetch) + (uri (hg-reference + (url "https://foss.heptapod.net/mercurial/commitsigs") + (changeset changeset))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "059gm66q06m6ayl4brsc517zkw3ahmz249b6xm1m32ac5y24wb9x")))) + (build-system copy-build-system) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%copy-build-system-modules) + #:modules ((srfi srfi-1) + (guix build python-build-system) + ;; Don't use `%copy-build-system-modules' because + ;; `standard-phases' from (guix build gnu-build-system) + ;; shadows the one from (guix build copy-build-system), + ;; which is the one we actually want. + (guix build copy-build-system) + ((guix build gnu-build-system) #:prefix gnu) + (guix build utils) + (guix build gremlin) + (ice-9 ftw) + (guix elf)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((gpg (string-append (assoc-ref inputs "gnupg") + "/bin/gpg")) + (openssl (string-append (assoc-ref inputs "openssl") + "/bin/openssl"))) + (substitute* "commitsigs.py" + (("b'gpg',") (string-append "b'" gpg "',")) + (("b'openssl',") (string-append "b'" openssl "',"))))))) + #:install-plan + `(("commitsigs.py" ,(string-append "lib/python" + (python-version + (assoc-ref %build-inputs "python")) + "/site-packages/hgext3rd/commitsigs.py"))))) + (native-inputs + `(("python" ,python))) + (inputs + `(("gnupg" ,gnupg) + ("openssl" ,openssl))) + (home-page "https://foss.heptapod.net/mercurial/commitsigs") + (synopsis "Automatic signing of changeset hashes") + (description "This package provides a Mercurial extension for signing +the changeset hash of commits. The signure is embedded directly in the +changeset itself; there won't be any extra commits. Either GnuPG or OpenSSL +can be used for signing.") + (license license:gpl3+)))) + (define-public neon (package (name "neon") -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat May 15 05:17:23 2021 Received: (at 48232) by debbugs.gnu.org; 15 May 2021 09:17:23 +0000 Received: from localhost ([127.0.0.1]:47557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQF-000699-2R for submit@debbugs.gnu.org; Sat, 15 May 2021 05:17:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59850 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQA-00068V-W4 for 48232@debbugs.gnu.org; Sat, 15 May 2021 05:17:19 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621070233; bh=CdhLDNNOgsKY2MOOLT2Vnxa+njI50RkWb5qstrjiQbY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=E3+SH3S9deNYLVE+LxV3WeJuXkYJyOl3a1PCYjat/hHn/x/YXySJ0yzdYLFKY3hsg dkrwy4C0oH8VtQmg5Ly1KJljMfp+TB6IPrLDB1hE815gj2VDbLMxCNVZxxjXw44LpG h9j7AtnEV8U+1pihX0wIAAejFG3JJAznkerA6FyM= To: 48232@debbugs.gnu.org Subject: [PATCH v2 2/2] gnu: mercurial: Patch to make it read HGEXTENSIONPATH. In-Reply-To: References: <87k0oecj3a.fsf@yoctocell.xyz> Message-Id: Date: Sat, 15 May 2021 11:17:12 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This will make Mercurial be able to find third-party extensions installed with Guix, without having to set PYTHONPATH. * gnu/packages/patches/mercurial-hg-extension-path.patch: New file. * gnu/local.mk (dist_patch_DATA): Register the patch. * gnu/packages/version-control.scm (mercurial)[origin](patches): Apply the pat [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 48232 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This will make Mercurial be able to find third-party extensions installed with Guix, without having to set PYTHONPATH. * gnu/packages/patches/mercurial-hg-extension-path.patch: New file. * gnu/local.mk (dist_patch_DATA): Register the patch. * gnu/packages/version-control.scm (mercurial)[origin](patches): Apply the pat [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This will make Mercurial be able to find third-party extensions installed with Guix, without having to set PYTHONPATH. * gnu/packages/patches/mercurial-hg-extension-path.patch: New file. * gnu/local.mk (dist_patch_DATA): Register the patch. * gnu/packages/version-control.scm (mercurial)[origin](patches): Apply the patch. [native-search-paths]: Add HGEXTENSIONPATH. --- gnu/local.mk | 1 + .../patches/mercurial-hg-extension-path.patch | 29 +++++++++++++++++++ gnu/packages/version-control.scm | 6 ++++ 3 files changed, 36 insertions(+) create mode 100644 gnu/packages/patches/mercurial-hg-extension-path.patch diff --git a/gnu/local.mk b/gnu/local.mk index c3b0274945..afb745a5fc 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1412,6 +1412,7 @@ dist_patch_DATA = \ %D%/packages/patches/mcrypt-CVE-2012-4527.patch \ %D%/packages/patches/libmemcached-build-with-gcc7.patch \ %D%/packages/patches/libmhash-hmac-fix-uaf.patch \ + %D%/packages/patches/mercurial-hg-extension-path.patch \ %D%/packages/patches/mesa-skip-tests.patch \ %D%/packages/patches/mescc-tools-boot.patch \ %D%/packages/patches/meson-for-build-rpath.patch \ diff --git a/gnu/packages/patches/mercurial-hg-extension-path.patch b/gnu/packages/patches/mercurial-hg-extension-path.patch new file mode 100644 index 0000000000..d1073dd01c --- /dev/null +++ b/gnu/packages/patches/mercurial-hg-extension-path.patch @@ -0,0 +1,29 @@ +This is needed to make Mercurial read the HGEXTENSIONPATH to detect +third-party extensions. It is called HGEXTENSIONPATH and not +HG_EXTENSION_PATH to keep it consistent with other environment variables for +Mercurial, e.g. HGENCODINGAMBIGUOUS, HGEDITOR ... Hopefully I or someone else +will get this into Mercurial proper. + +diff --git a/mercurial/extensions.py b/mercurial/extensions.py +--- a/mercurial/extensions.py ++++ b/mercurial/extensions.py +@@ -13,6 +13,7 @@ + import imp + import inspect + import os ++import sys + + from .i18n import ( + _, +@@ -108,6 +109,11 @@ + + def _importh(name): + """import and return the module""" ++ # Read HGEXTENSIONSPATH environment variable when import extensions. ++ extension_path = os.getenv("HGEXTENSIONSPATH") ++ if extension_path is not None: ++ for path in extension_path: ++ sys.path.append(path) + mod = __import__(pycompat.sysstr(name)) + components = name.split(b'.') + for comp in components[1:]: diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 1e55c73c0c..c3be5f1c42 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1614,6 +1614,7 @@ execution of any hook written in any language before every commit.") (method url-fetch) (uri (string-append "https://www.mercurial-scm.org/" "release/mercurial-" version ".tar.gz")) + (patches (search-patches "mercurial-hg-extension-path.patch")) (sha256 (base32 "17rhlmmkqz5ll3k68jfzpcifg3nndbcbc2nx7kw8xn3qcj7nlpgw")))) @@ -1684,6 +1685,11 @@ execution of any hook written in any language before every commit.") ("which" ,which))) (inputs `(("python" ,python))) + ;; Find third-party extensions. + (native-search-paths + (list (search-path-specification + (variable "HGEXTENSIONPATH") + (files '("lib/python3.8/site-packages/hgext3rd"))))) (home-page "https://www.mercurial-scm.org/") (synopsis "Decentralized version control system") (description -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 17:14:42 2021 Received: (at 48232) by debbugs.gnu.org; 16 May 2021 21:14:42 +0000 Received: from localhost ([127.0.0.1]:51585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liO5y-0000tS-Jm for submit@debbugs.gnu.org; Sun, 16 May 2021 17:14:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liO5w-0000tC-8L for 48232@debbugs.gnu.org; Sun, 16 May 2021 17:14:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36254) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liO5q-0007rA-Nn; Sun, 16 May 2021 17:14:34 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55338 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liO5q-0005jE-F9; Sun, 16 May 2021 17:14:34 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: [PATCH v2 1/2] gnu: Add hg-commitsigs. References: <87k0oecj3a.fsf@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Sun, 16 May 2021 23:14:32 +0200 In-Reply-To: (Xinglu Chen's message of "Sat, 15 May 2021 11:17:11 +0200") Message-ID: <87r1i6fkjr.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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi, Xinglu Chen skribis: > * gnu/packages/version-control.scm (hg-commitsigs): New variable. [...] > + (license license:gpl3+)))) Changed to =E2=80=98gpl2=E2=80=99 (=E2=80=98commitsigs.py=E2=80=99 says GPL= v2 only) and applied. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 17:16:16 2021 Received: (at 48232) by debbugs.gnu.org; 16 May 2021 21:16:16 +0000 Received: from localhost ([127.0.0.1]:51589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liO7T-0000wb-TI for submit@debbugs.gnu.org; Sun, 16 May 2021 17:16:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liO7S-0000wP-J2 for 48232@debbugs.gnu.org; Sun, 16 May 2021 17:16:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36336) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liO7M-0000b2-Tq; Sun, 16 May 2021 17:16:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55352 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liO7M-0005uo-LK; Sun, 16 May 2021 17:16:08 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: [PATCH v2 2/2] gnu: mercurial: Patch to make it read HGEXTENSIONPATH. References: <87k0oecj3a.fsf@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Sun, 16 May 2021 23:16:07 +0200 In-Reply-To: (Xinglu Chen's message of "Sat, 15 May 2021 11:17:12 +0200") Message-ID: <87mtsufkh4.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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Xinglu Chen skribis: > This will make Mercurial be able to find third-party extensions installed= with > Guix, without having to set PYTHONPATH. > > * gnu/packages/patches/mercurial-hg-extension-path.patch: New file. > * gnu/local.mk (dist_patch_DATA): Register the patch. > * gnu/packages/version-control.scm (mercurial)[origin](patches): Apply the > patch. > [native-search-paths]: Add HGEXTENSIONPATH. Perfect. Applied, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 17:33:50 2021 Received: (at 48232) by debbugs.gnu.org; 16 May 2021 21:33:50 +0000 Received: from localhost ([127.0.0.1]:51602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liOOU-0001Mx-HS for submit@debbugs.gnu.org; Sun, 16 May 2021 17:33:50 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:48498 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liOOS-0001Mi-Qn for 48232@debbugs.gnu.org; Sun, 16 May 2021 17:33:49 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621200822; bh=cXwLyrdrIWr2JiTwhOS9DbqJwdfxcQ6FUSAmSHirn1k=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=I2diGLfo5YRiz4yjCAGrKnN7PUQ3cfm55bJpXe2cNzKLxTZR/VwR+N5nEMGut98cc CbqqcDMWM6BJq6OhL+JsXYmTXaOHMawozwVfGoa4TlX4YRcMQh8dDnGeYA07X4WS7P ahUEQcEuh/2ucQ2CHAuadJ5wp3bYQstiiV2kaEyc= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#48232] [PATCH v2 1/2] gnu: Add hg-commitsigs. In-Reply-To: <87r1i6fkjr.fsf@gnu.org> References: <87k0oecj3a.fsf@yoctocell.xyz> <87r1i6fkjr.fsf@gnu.org> Date: Sun, 16 May 2021 23:33:33 +0200 Message-ID: <87sg2mfjo2.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, May 16 2021, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> + (license license:gpl3+)))) > > Changed to ‘gpl2’ (‘commitsigs.py’ says GPLv2 only) and applied. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 48232 Cc: 48232@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, May 16 2021, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> + (license license:gpl3+)))) > > Changed to ‘gpl2’ (‘commitsigs.py’ says GPLv2 only) and applied. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, May 16 2021, Ludovic Court=C3=A8s wrote: > Hi, > > Xinglu Chen skribis: > >> + (license license:gpl3+)))) > > Changed to =E2=80=98gpl2=E2=80=99 (=E2=80=98commitsigs.py=E2=80=99 says G= PLv2 only) and applied. Good catch, looks like COPYING was for the logo and not the code itself. Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmChj60VHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5xZ4QAKKJpp/1MN+HQ9a+JuXxGzeL34UZ vRM3Sdcjl6dNGMhvQPZUOyQPBop3Wlgk8lwQ4SWHwOLXNbJJYmMM3/azOJfqYKKH XrVUWmzQgq0FIYjBCmZNsrrfR20T3J6gdZwpHXp1bJqez9JaZbQJwbwxHlYCRob/ 5XDTuWWJzh3xGA7Lc7QWVG+fn+5BFFgbOaURR/1yiyEBBYTm88BsiQ09wOrYCq8Z Pc/T5pzHqJhhqLpv/U+o+4keeo6GUurwD5RolsMVOW1F9VvRwMa01P81u4kYYxZm zsF9hL5h6UJ+tnD/XoI/tM2o6O40lFds2y39C6S/bB9EHMmHQ+nIuoDPUbaIFJOE qbs+UmBhDHVAkr5OkVk9j3ig8a+yDnGo4u2UYEln8AxxXqlboFqth2W1ySVdaerJ vkhflzsrpuczfFR06qOCtuLkTfTQPXxQ4mevNwatCl6QFo2senRVs32Ec2fQ/ahc qbjQ4S5dXzmr4tf/QyoOtQjfI1YMC/f30GB5kYpnhbVmrMSltH6WTNegMeAGZNOt bUokTevw0QUTgfn0DVyNLij0Dl60FXI6Y+5jjl6joNvcsUAVuyvjNqRPyQdldKmr BPo6VodOdUS8tdIdrQjtLjOW0dJDDCJnxxUZdlamzsBVH/Ar4ntQfPfYbpvRg/lr rg6BYtlguXYWsfwQ =/SK/ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 17 16:08:07 2021 Received: (at 48232-done) by debbugs.gnu.org; 17 May 2021 20:08:07 +0000 Received: from localhost ([127.0.0.1]:53873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lijX5-0001v6-A5 for submit@debbugs.gnu.org; Mon, 17 May 2021 16:08:07 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:48494 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lijX2-0001ua-Pr for 48232-done@debbugs.gnu.org; Mon, 17 May 2021 16:08:05 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621282076; bh=LL6ZFlgiwy2z3LhQhpODaJpdL7ufFt0aE6UEKdv/SRg=; h=From:To:Subject:In-Reply-To:References:Date; b=G74gTCN5U/1zmO2nwL4zJsH6PLQ3KhKqvcUgojWd/2QUgdPgujL6+JlSnRr+ZPjyC jkvf+GfSe+ZB2rC+MXmFR51sgnkMDz2AGK7arromiTQIa85t6RCuQC+rEziH3E33ey Srv3HokeUNLGJzxc43AiZRmoNfl4P/zrl7nyas5I= To: 48232-done@debbugs.gnu.org Subject: Re: [bug#48232] [PATCH v2 0/2] Add hg-commitsigs and some changes to Mercurial. In-Reply-To: References: <87k0oecj3a.fsf@yoctocell.xyz> Date: Mon, 17 May 2021 22:07:55 +0200 Message-ID: <877djxjf8k.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The patches have been applied, closing. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 48232-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The patches have been applied, closing. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager The patches have been applied, closing. From unknown Sat Aug 16 20:56:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Jun 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator