From unknown Fri Sep 19 17:22:45 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#31497 <31497@debbugs.gnu.org>
To: bug#31497 <31497@debbugs.gnu.org>
Subject: Status: 27.0.50; vc-hg doesn't separate standard error from
standard output
Reply-To: bug#31497 <31497@debbugs.gnu.org>
Date: Sat, 20 Sep 2025 00:22:45 +0000
retitle 31497 27.0.50; vc-hg doesn't separate standard error from standard =
output
reassign 31497 emacs
submitter 31497 Philipp Stephani
severity 31497 minor
tag 31497 fixed
thanks
From debbugs-submit-bounces@debbugs.gnu.org Fri May 18 13:42:34 2018
Received: (at submit) by debbugs.gnu.org; 18 May 2018 17:42:34 +0000
Received: from localhost ([127.0.0.1]:40057 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1fJjOk-0008Fx-5I
for submit@debbugs.gnu.org; Fri, 18 May 2018 13:42:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49743)
by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOi-0008Fl-NN
for submit@debbugs.gnu.org; Fri, 18 May 2018 13:42:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOc-0001Qk-ER
for submit@debbugs.gnu.org; Fri, 18 May 2018 13:42:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:43262)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOc-0001Qe-AN
for submit@debbugs.gnu.org; Fri, 18 May 2018 13:42:26 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40708)
by lists.gnu.org with esmtp (Exim 4.71) (envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOa-0003iF-IT
for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 13:42:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOX-0001NU-BA
for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 13:42:24 -0400
Received: from mail-yb0-f202.google.com ([209.85.213.202]:35988)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from
<3fBD_WgsJDXck.noZkcVidxbhVdg.XjhWpb-bip-ZhVXnbip.jmb@flex--phst.bounces.google.com>)
id 1fJjOX-0001NG-6t
for bug-gnu-emacs@gnu.org; Fri, 18 May 2018 13:42:21 -0400
Received: by mail-yb0-f202.google.com with SMTP id 189-v6so4808218ybf.3
for ; Fri, 18 May 2018 10:42:20 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:message-id:mime-version:subject:from:to
:content-transfer-encoding;
bh=zGQ/BkVQ4e/aaelD4b05JpDMz+UdUOLNZS6mXtuwpLg=;
b=h6CVTFYX/jiMLdLAHi2iD6dqwv0cViivggNxItWhPfoeJ19rxfGYqEXYSDRjeLliFd
Ev7qgdW7fsz8EUdfB5pU5iS6R1g/0VchF35HbnHMU94Dz2vs+6LAjg9qxaNXkpRq6q4y
bqfjzqd03bmriI9czv/mBYbCA4CK01vf7+CVLAC3kU6S+2PtZTC7QtqaXGS+r0V0dVxt
griHJChPH/7GNozTPMLni3hnMdCzjOQYulyCy6+vMPWo4Akjl6fFpDwlLK2AoNzrTU4z
te/+YCZrJmNt+JMinnPVjuMupgduEwB9BCIv/FhIqAeuPwgeGA8h1JZddv9leGgSZEGt
qKGg==
X-Gm-Message-State: ALKqPwfEG4t2FilIq4ii21KY/UziqC5/s5Y+wd/NQ7Y2hEY1xZH9Z5qP
7rUjWr5oT7UU+8u4a3LJWUBtzQ==
X-Google-Smtp-Source: AB8JxZq99lnk31GZptrPlO9fRbnXjREU0nm+czys5lRFKoWqB/8LpPQv7MZ0CaIpprB4wH9q5d0m+AQc
X-Received: by 2002:a81:6a06:: with SMTP id
f6-v6mr3339503ywc.132.1526665340025;
Fri, 18 May 2018 10:42:20 -0700 (PDT)
Date: Fri, 18 May 2018 19:42:15 +0200
Message-Id:
Mime-Version: 1.0
Subject: 27.0.50; vc-hg doesn't separate standard error from standard output
From: Philipp Stephani
To: bug-gnu-emacs@gnu.org
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
[fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.5 (---)
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: -4.5 (----)
Create a Mercurial repository owned by root and add a hgrc file, e.g.:
$ mkdir -p /tmp/hg
$ cd /tmp/hg
$ sudo -s
# hg init
# echo a > a.txt
# hg addremove
# hg commit -m 'commit message'
# touch .hg/hgrc
Then visit a.txt in Emacs as non-root:
$ emacs -Q a.txt
Instead of the revision number, the status line will show
"Hg-not trusting file /tmp/hg/.hg/hgrc ..."
This is because the status line runs something like
$ hg log -l 1 -r . -T '{rev}'
but that outputs
not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
on stderr, and Emacs merges stderr and stdout. Rather it should ignore
stderr in this case.
In GNU Emacs 27.0.50 (build 27, x86_64-pc-linux-gnu, GTK+ Version 3.22.24)
of 2018-05-18 built on localhost
Repository revision: f4d9fd3dd45f767eca33fbf1beee40da790fa74e
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --without-threads --enable-gcc-warnings=3Dwarn-only
--enable-gtk-deprecation-warnings --without-pop --with-mailutils
--enable-checking --enable-check-lisp-object-type --with-modules
'CFLAGS=3D-O0 -ggdb3''
Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES JSON
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
easymenu mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date elec-pair
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)
Memory information:
((conses 16 95054 11969)
(symbols 48 20166 1)
(miscs 40 40 122)
(strings 32 28302 2388)
(string-bytes 1 758914)
(vectors 16 14177)
(vector-slots 8 499094 14196)
(floats 8 48 69)
(intervals 56 222 0)
(buffers 992 12))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don=E2=80=99t forward=
it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sende=
r
know it went to the wrong person. Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Tue May 29 18:52:20 2018
Received: (at control) by debbugs.gnu.org; 29 May 2018 22:52:21 +0000
Received: from localhost ([127.0.0.1]:54413 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1fNnTY-0005X7-Ja
for submit@debbugs.gnu.org; Tue, 29 May 2018 18:52:20 -0400
Received: from mail-it0-f51.google.com ([209.85.214.51]:39915)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1fNnTW-0005Wt-Cp
for control@debbugs.gnu.org; Tue, 29 May 2018 18:52:18 -0400
Received: by mail-it0-f51.google.com with SMTP id c3-v6so21007930itj.4
for ; Tue, 29 May 2018 15:52:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=e6zXZD881zdQ+885TF5542cZo//T10lxyZ5S0LCTpyY=;
b=gZY+3Uf8pPjX6P1Cq/tl9+B3HwR4U6YJ6jzGNEWOPY1jHrMqwfApWs3uwFNNU4Z0tG
G1mCTyMppRganFPRu9KfeKJPrD7zJ8gH3lsxm3gSRxV1StUh31PhbVjN2k4zipGW0TwW
4uXwJqxn/BvWMaAKa5f8QUjPzHVD/swF0GIcgwKiavWAL/kADwlIp9v9FricBqx2E8gP
4JhB2TjB4bT40bg7Dp1JRNyp3dk31XRZ+t5krbNzTF3i0AA/YpdWhRXR4JPInlewhsx4
/FrMxtKIhibTKk+iA41gcIRwRSmGkVpetm1nDLlB/cJHGfMHbod5TdQvNT5/M0Ys2U93
PIzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=e6zXZD881zdQ+885TF5542cZo//T10lxyZ5S0LCTpyY=;
b=rAzEKxD4jXv3jYtmP/S1kGOIyprETy4ovMTEJhRVLwY8SItHde0gG/XJyvc5T2Ya1H
78b6WuZOusM+6pBMkgSq//lmzXScM3yvPYopHYjLqbWuV92X9a+hilWcbJuA4Yft8Vmf
gBtUzZHftIZ6ZkpKCE7B8OtpTbUDd7DCaJ3Y2da3zdGfr4YtOjqeoZZrGd8fk46DQ2d3
BA5kI+WJfVohNtQd1t5CI3EBfVYJyi/VhOO/MxBJZjjGLIBq517FvOEsOFyGvwCCQR2U
oMq1bnxhf4vCUc3Pzg8mGUy1B/MjBD/G808PJJvMgF+/I4uVrk7BIxwsM91cIQEOvQoX
WTYQ==
X-Gm-Message-State: APt69E1JW02EUjnu4mvLNQ6OsBV0H/swlJaX2ds15rMi2S7yRCCLTSJ1
ZcT0M5vx9/3T5+Lm0P2fE1bEYQ==
X-Google-Smtp-Source: ADUXVKKULYhrrs9YaqlJlEmkLtji5KaM7KlQWkYu+51vMGZPNwneFVQjS6t3NeqVRAWyQmaMuIC0OA==
X-Received: by 2002:a24:1acc:: with SMTP id 195-v6mr856906iti.48.1527634332703;
Tue, 29 May 2018 15:52:12 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
by smtp.googlemail.com with ESMTPSA id
e22-v6sm10407520ita.0.2018.05.29.15.52.11
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Tue, 29 May 2018 15:52:12 -0700 (PDT)
From: Noam Postavsky
To: control@debbugs.gnu.org
Subject: control message for bug #31497
Date: Tue, 29 May 2018 18:52:11 -0400
Message-ID: <87efhucbxg.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
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.0 (-)
severity 31497 minor
quit
From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 17:57:21 2019
Received: (at 31497) by debbugs.gnu.org; 9 Oct 2019 21:57:21 +0000
Received: from localhost ([127.0.0.1]:54315 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iIJxR-0003Ng-JZ
for submit@debbugs.gnu.org; Wed, 09 Oct 2019 17:57:21 -0400
Received: from quimby.gnus.org ([80.91.231.51]:45188)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iIJxP-0003NY-Pi
for 31497@debbugs.gnu.org; Wed, 09 Oct 2019 17:57:20 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1iIJxL-00056Y-GC; Wed, 09 Oct 2019 23:57:18 +0200
From: Lars Ingebrigtsen
To: Philipp Stephani
Subject: Re: bug#31497: 27.0.50; vc-hg doesn't separate standard error from
standard output
References:
Date: Wed, 09 Oct 2019 23:57:15 +0200
In-Reply-To: (Philipp Stephani's
message of "Fri, 18 May 2018 19:42:15 +0200")
Message-ID: <87d0f51t1g.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: Philipp Stephani writes: > Create
a Mercurial repository owned by root and add a hgrc file, e.g.: > > $ mkdir
-p /tmp/hg > $ cd /tmp/hg > $ sudo -s > # hg init > # echo a > a.txt > #
hg addremove > # hg commit -m 'commit mess [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31497
Cc: 31497@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.0 (-)
Philipp Stephani writes:
> Create a Mercurial repository owned by root and add a hgrc file, e.g.:
>
> $ mkdir -p /tmp/hg
> $ cd /tmp/hg
> $ sudo -s
> # hg init
> # echo a > a.txt
> # hg addremove
> # hg commit -m 'commit message'
> # touch .hg/hgrc
>
> Then visit a.txt in Emacs as non-root:
>
> $ emacs -Q a.txt
>
> Instead of the revision number, the status line will show
> "Hg-not trusting file /tmp/hg/.hg/hgrc ..."
>
> This is because the status line runs something like
>
> $ hg log -l 1 -r . -T '{rev}'
>
> but that outputs
>
> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>
> on stderr, and Emacs merges stderr and stdout. Rather it should ignore
> stderr in this case.
I can confirm that this bug is still present in Emacs 27. The command
is started from vc-doc-command, which uses start-file-process, which
uses start-process, which doesn't even allow separating stderr from
stdin.
(In general, Emacs stderr/stdin handling is very frustrating.)
Would it make sense to alter this function
(defun vc-hg--run-log (template rev path)
(ignore-errors
(with-output-to-string
(if path
(vc-hg-command
standard-output 0 nil
"log" "-f" "-l1" "--template" template path)
(vc-hg-command
standard-output 0 nil
"log" "-r" rev "-l1" "--template" template)))))
to filter out the "not trusting" lines, or is this just one of a
gazillion error messages that can be output here?
not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
4d872e
I though perhaps we could redirect the error output with "-E", but "hg
log" doesn't seem to support that.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 03:30:50 2019
Received: (at 31497) by debbugs.gnu.org; 10 Oct 2019 07:30:50 +0000
Received: from localhost ([127.0.0.1]:54988 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iISuP-0006ys-TV
for submit@debbugs.gnu.org; Thu, 10 Oct 2019 03:30:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41997)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iISuN-0006yf-Fz
for 31497@debbugs.gnu.org; Thu, 10 Oct 2019 03:30:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34343)
by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from )
id 1iISuH-0001oP-D0; Thu, 10 Oct 2019 03:30:42 -0400
Received: from [176.228.60.248] (port=3546 helo=home-c4e4a596f7)
by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
(Exim 4.82) (envelope-from )
id 1iISuG-0001hO-Dz; Thu, 10 Oct 2019 03:30:41 -0400
Date: Thu, 10 Oct 2019 10:30:26 +0300
Message-Id: <837e5dt5v1.fsf@gnu.org>
From: Eli Zaretskii
To: Lars Ingebrigtsen
In-reply-to: <87d0f51t1g.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed,
09 Oct 2019 23:57:15 +0200)
Subject: Re: bug#31497: 27.0.50;
vc-hg doesn't separate standard error from standard output
References: <87d0f51t1g.fsf@gnus.org>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 31497
Cc: p.stephani2@gmail.com, 31497@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: -3.3 (---)
> From: Lars Ingebrigtsen
> Date: Wed, 09 Oct 2019 23:57:15 +0200
> Cc: 31497@debbugs.gnu.org
>
> I can confirm that this bug is still present in Emacs 27. The command
> is started from vc-doc-command, which uses start-file-process, which
> uses start-process, which doesn't even allow separating stderr from
> stdin.
>
> (In general, Emacs stderr/stdin handling is very frustrating.)
>From the doc string of start-process:
If you want to separate standard output from standard error, use
‘make-process’ or invoke the command through a shell and redirect
one of them using the shell syntax.
From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 07:11:56 2019
Received: (at submit) by debbugs.gnu.org; 10 Oct 2019 11:11:56 +0000
Received: from localhost ([127.0.0.1]:55128 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iIWMN-0005Kv-W9
for submit@debbugs.gnu.org; Thu, 10 Oct 2019 07:11:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:54870)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iIWMN-0005Kk-0S
for submit@debbugs.gnu.org; Thu, 10 Oct 2019 07:11:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47755)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from ) id 1iIWML-0001MU-Qz
for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 07:11:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1iIWMK-0004FU-5r
for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 07:11:53 -0400
Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:41087)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1iIWMJ-0004EN-T3
for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 07:11:52 -0400
Received: by mail-lj1-x242.google.com with SMTP id f5so5744844ljg.8
for ; Thu, 10 Oct 2019 04:11:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:content-transfer-encoding:mime-version:subject:message-id:date
:cc:to; bh=XZZagQ1XoUgF0t77Ah5/LxJL3NbkP2itbD62wpXdiIY=;
b=kpfgtV5FVPrJsk02Zis59ut+rimhz1F6933lurNPTW9KmB89Nkc179AHo2ZVgpagtx
WdsnrZ0s/ewkkE///Zu/H7atB8MlG/xVBEmwj2jjM5gR3LK8cmXiRxWKltp5cd/StYGc
Rq33wDRab3sZmAUZkzhlgop6VgzCZpxzApxtVyCVio+I43dKEqa9xfVqdtdPNF7D4ySd
T+marSAExy/F5j7DqSAbLD+wLk7pAeCAGP3bCWZvUyA0feRO6E9DBY0tz4jZ7Km3PfRb
9ZYlpUACMZx2sZK3082YwpGkF8EdHPwMmaDcaLKck55oEdus4QqeouiNJvybGRqOhL5Z
DhrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:content-transfer-encoding:mime-version
:subject:message-id:date:cc:to;
bh=XZZagQ1XoUgF0t77Ah5/LxJL3NbkP2itbD62wpXdiIY=;
b=FNNt53924YuhprhYNcEr3o2uYtK+a7ZLJ5yB/3NY2/KRRRvWkZdYRvIbNCPEmJU6JW
PDH+K2ewADYjLYqPf80rxEVE/3c/n23BWUnz0gdV/0mmak19dHNAIB2gQLwO9ztZyyPb
Lcebc9EFs9+ywTnlORwlwrg0A/fsuTF9+l93nk34dG0iePl+o1hspBbtSM/cHWOgZbcw
jSH+FHfKx9E89987kqRHvOUvxnyrlSow4PZhS6sQ1mjkMx7h9CKwOVrf19IR0DopDo5K
LMKmA1nFLtjCOQNSGcu04Q+9aBhhXC68p8fUx+0a8AbSGaBnt2Egy6EkUVvz4dUmVNSa
zFiQ==
X-Gm-Message-State: APjAAAXPxAF1a9NsuLd3T1fS0RNYezqO4kQGk6R6t4HFxFgvU0u8BtEm
tJ4yRj8JUr9LaI8mTnlNRQSk6s8N+J0=
X-Google-Smtp-Source: APXvYqxgi3vKhP6YOcAEojZ8xL5klE2m3HttzPNN1wh27Jbfr54o3b2CgU+FAvTdUhiNVORU2luwDQ==
X-Received: by 2002:a2e:97ca:: with SMTP id m10mr6155750ljj.190.1570705908359;
Thu, 10 Oct 2019 04:11:48 -0700 (PDT)
Received: from [10.1.1.105] (188-42-207-82.ip.ukrtel.net. [82.207.42.188])
by smtp.gmail.com with ESMTPSA id s6sm1155668ljg.43.2019.10.10.04.11.46
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 10 Oct 2019 04:11:47 -0700 (PDT)
From: Andrii Kolomoiets
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\))
Subject: bug#31497: 27.0.50; vc-hg doesn't separate standard error from
standard output
Message-Id:
Date: Thu, 10 Oct 2019 14:11:45 +0300
To: larsi@gnus.org
X-Mailer: Apple Mail (2.3594.4.19)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2a00:1450:4864:20::242
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: bug-gnu-emacs@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.3 (--)
Lars Ingebrigtsen writes:
>> $ hg log -l 1 -r . -T '{rev}'
>>
>> but that outputs
>>
>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>
> filter out the "not trusting" lines, or is this just one of a
> gazillion error messages that can be output here?
Other errors also printed to stderr, so filtering out stderr completely
can hide meaningful errors.
This particular warning is also present in log and annotate buffers and
completely messing up vc-dir buffer.
There are option 'ui.report_untrusted' in hg since this commit:
https://www.mercurial-scm.org/repo/hg/rev/97369f6a6bb6
It present in mercurial 2.6.2, the earliest version I found in pip.
To filter out just "not trusting" warning I can propose to run hg like
this:
hg log --config ui.report_untrusted=0 -l 1 -r . -T '{rev}'
or specify '--config ui.report_untrusted=0' as default value for
vc-hg-global-switches
I think 'pull' and 'push' are the only commands that must print this
warning.
From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 11 03:27:50 2019
Received: (at 31497) by debbugs.gnu.org; 11 Oct 2019 07:27:51 +0000
Received: from localhost ([127.0.0.1]:57600 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iIpL4-0001on-Ky
for submit@debbugs.gnu.org; Fri, 11 Oct 2019 03:27:50 -0400
Received: from quimby.gnus.org ([80.91.231.51]:55344)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iIpL0-0001od-Ri
for 31497@debbugs.gnu.org; Fri, 11 Oct 2019 03:27:47 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1iIpKx-0001ko-IV; Fri, 11 Oct 2019 09:27:45 +0200
From: Lars Ingebrigtsen
To: Eli Zaretskii
Subject: Re: bug#31497: 27.0.50; vc-hg doesn't separate standard error from
standard output
References: <87d0f51t1g.fsf@gnus.org>
<837e5dt5v1.fsf@gnu.org>
Date: Fri, 11 Oct 2019 09:27:43 +0200
In-Reply-To: <837e5dt5v1.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct
2019 10:30:26 +0300")
Message-ID: <87y2xroi6o.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: Eli Zaretskii writes: >> I can confirm that
this bug is still present in Emacs 27. The command >> is started from
vc-doc-command,
which uses start-file-process, which >> uses start-process, which doesn't
even allow separat [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31497
Cc: p.stephani2@gmail.com, 31497@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.0 (-)
Eli Zaretskii writes:
>> I can confirm that this bug is still present in Emacs 27. The command
>> is started from vc-doc-command, which uses start-file-process, which
>> uses start-process, which doesn't even allow separating stderr from
>> stdin.
>>=20
>> (In general, Emacs stderr/stdin handling is very frustrating.)
>
>>>From the doc string of start-process:
>
> If you want to separate standard output from standard error, use
> =E2=80=98make-process=E2=80=99 or invoke the command through a shell an=
d redirect
> one of them using the shell syntax.
Yes, I think start-file-process and start-process should also provide
the same stderr capabilities as make-process. Those two functions are
handy, but lead to sloppy handling of stderr.
--=20
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 19:54:15 2019
Received: (at 31497) by debbugs.gnu.org; 14 Oct 2019 23:54:15 +0000
Received: from localhost ([127.0.0.1]:42419 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iKAAI-0006WW-Rb
for submit@debbugs.gnu.org; Mon, 14 Oct 2019 19:54:15 -0400
Received: from [80.91.231.51] (port=43638 helo=quimby.gnus.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iKAAH-0006WN-4e
for 31497@debbugs.gnu.org; Mon, 14 Oct 2019 19:54:13 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from ) id 1iKAAB-0005lP-EH
for 31497@debbugs.gnu.org; Tue, 15 Oct 2019 01:54:10 +0200
From: Lars Ingebrigtsen
To: 31497@debbugs.gnu.org
Subject: [Andrii Kolomoiets] bug#31497: 27.0.50; vc-hg doesn't separate
standard error from standard output
Date: Tue, 15 Oct 2019 01:54:07 +0200
Message-ID: <87a7a2sx28.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: Start of forwarded message From: Andrii Kolomoiets
Subject: bug#31497: 27.0.50;
vc-hg doesn't separate standard error from standard ou [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 1.3 (+)
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: Start of forwarded message From: Andrii Kolomoiets
Subject: bug#31497: 27.0.50;
vc-hg doesn't separate standard error from standard ou [...]
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: gnu.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 SPF_NONE SPF: sender does not publish an SPF Record
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Debbugs-Envelope-To: 31497
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.3 (/)
-------------------- Start of forwarded message --------------------
From: Andrii Kolomoiets
Subject: bug#31497: 27.0.50; vc-hg doesn't separate standard error from
standard output
Date: Thu, 10 Oct 2019 14:11:45 +0300
Cc: bug-gnu-emacs@gnu.org
To: larsi@gnus.org
Lars Ingebrigtsen writes:
>> $ hg log -l 1 -r . -T '{rev}'
>>
>> but that outputs
>>
>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>
> filter out the "not trusting" lines, or is this just one of a
> gazillion error messages that can be output here?
Other errors also printed to stderr, so filtering out stderr completely
can hide meaningful errors.
This particular warning is also present in log and annotate buffers and
completely messing up vc-dir buffer.
There are option 'ui.report_untrusted' in hg since this commit:
https://www.mercurial-scm.org/repo/hg/rev/97369f6a6bb6
It present in mercurial 2.6.2, the earliest version I found in pip.
To filter out just "not trusting" warning I can propose to run hg like
this:
hg log --config ui.report_untrusted=0 -l 1 -r . -T '{rev}'
or specify '--config ui.report_untrusted=0' as default value for
vc-hg-global-switches
I think 'pull' and 'push' are the only commands that must print this
warning.
-------------------- End of forwarded message --------------------
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 20:34:03 2019
Received: (at 31497) by debbugs.gnu.org; 15 Oct 2019 00:34:03 +0000
Received: from localhost ([127.0.0.1]:42451 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iKAmp-0001WB-BA
for submit@debbugs.gnu.org; Mon, 14 Oct 2019 20:34:03 -0400
Received: from [80.91.231.51] (port=44350 helo=quimby.gnus.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iKAmn-0001Vh-9T
for 31497@debbugs.gnu.org; Mon, 14 Oct 2019 20:34:02 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1iKAmi-000684-Au; Tue, 15 Oct 2019 02:33:58 +0200
From: Lars Ingebrigtsen
To: 31497@debbugs.gnu.org
Subject: Re: bug#31497: [Andrii Kolomoiets] bug#31497: 27.0.50; vc-hg
doesn't separate standard error from standard output
References: <87a7a2sx28.fsf@gnus.org>
Date: Tue, 15 Oct 2019 02:33:55 +0200
In-Reply-To: <87a7a2sx28.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue,
15 Oct 2019 01:54:07 +0200")
Message-ID: <87sgnurgng.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: (Please keep the debbugs address in the Cc list -- otherwise
the bug tracker won't get the message.) >>> not trusting file /tmp/hg/.hg/hgrc
from untrusted user root, group root >>> not trusting file /tmp/hg/.hg/hgrc
from untrusted user root, group root >> >> filter out the "not trusting"
lines, or is [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 1.3 (+)
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: (Please keep the debbugs address in the Cc list -- otherwise
the bug tracker won't get the message.) >>> not trusting file /tmp/hg/.hg/hgrc
from untrusted user root, group root >>> not trusting file /tmp/hg/.hg/hgrc
from untrusted user root, group root >> >> filter out the "not trusting"
lines, or is [...]
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: ingebrigtsen.no]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 SPF_NONE SPF: sender does not publish an SPF Record
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Debbugs-Envelope-To: 31497
Cc: Andrii Kolomoiets
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.3 (/)
(Please keep the debbugs address in the Cc list -- otherwise the bug
tracker won't get the message.)
>>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>>> not trusting file /tmp/hg/.hg/hgrc from untrusted user root, group root
>>
>> filter out the "not trusting" lines, or is this just one of a
>> gazillion error messages that can be output here?
>
> Other errors also printed to stderr, so filtering out stderr completely
> can hide meaningful errors.
>
> This particular warning is also present in log and annotate buffers and
> completely messing up vc-dir buffer.
>
> There are option 'ui.report_untrusted' in hg since this commit:
> https://www.mercurial-scm.org/repo/hg/rev/97369f6a6bb6
So that's 2007, so it should presumably be safe to add that.
> It present in mercurial 2.6.2, the earliest version I found in pip.
>
> To filter out just "not trusting" warning I can propose to run hg like
> this:
> hg log --config ui.report_untrusted=0 -l 1 -r . -T '{rev}'
Could you propose a patch that adds this?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 16 03:32:50 2019
Received: (at 31497) by debbugs.gnu.org; 16 Oct 2019 07:32:50 +0000
Received: from localhost ([127.0.0.1]:45144 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iKdne-0006Fy-80
for submit@debbugs.gnu.org; Wed, 16 Oct 2019 03:32:50 -0400
Received: from mail-lj1-f175.google.com ([209.85.208.175]:36734)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iKdnc-0006Ff-44
for 31497@debbugs.gnu.org; Wed, 16 Oct 2019 03:32:48 -0400
Received: by mail-lj1-f175.google.com with SMTP id v24so22887724ljj.3
for <31497@debbugs.gnu.org>; Wed, 16 Oct 2019 00:32:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:message-id:mime-version:subject:date:in-reply-to:cc:to
:references; bh=SIrMKb86VqnDgoh6XrXJGtxLKVFkQJHF40gnudmluDs=;
b=W+K2agpw5H5wbZVe5TUQ7NjITnAQ5i4iIG3FkzLltAF7P9PsXqmNQIBGKC5bO9cxNA
FXh8bdu29EEYUoQ2JPifnwzPcGr9/T7bYshn0cqYQ5LXlFQiCqAj7tLB+lliNm8QIKBw
qP7ObdWm0HoFuxOk2Ru4ST+J7/2Od52pcIrnMvSi+63ShuK8elVvo+44YAEC/ISkFFui
vnCz9R9smmjliPllJhQyCLR7Ywppkxp+QtHg4wdzskCmzN5P04eRWID+WyUBnGVTVJZh
UpJrLTasy/KaXRlzh1Pn0nlpKZjjDS3qAHNFTEFGYHLhOrQJpfWkFRMnrRn6MhP4gu7e
0/vw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:message-id:mime-version:subject:date
:in-reply-to:cc:to:references;
bh=SIrMKb86VqnDgoh6XrXJGtxLKVFkQJHF40gnudmluDs=;
b=IQhqQ2y+T3svuncPWvTGWTt1ZJy0jueNVwuZwraw2OoSfLO2QbFteM3CSZ6Gmox8Vn
oNtmAsPNM2YP8w3LHrxI8pXuDB1Qb9sF1C7asvYz0HuLkIP30a2dy/6JBid/yvSUYi0S
iGjWQntZo0yJK4BJpJvMe/WOofkOguvIkJ5oNFZ4x6MM6z4oIK9XWgyGyfW2KFxrA5Aq
CgF5fTK8yxIFe8306IId6OEuVVgB/NQBmFaMdKNlbSZmC7zgqIRYhGFKYSIooIu2Rhli
7/m7qpfspG8fZLlijDZz2IzlGVnGtNjknFs0KfB0AvKN87x88aje8+woNDRWiEI3Cv9f
uxCQ==
X-Gm-Message-State: APjAAAUMHnSjntsE4jhjOfbkSyEHN3DNjvpg7s3IqcpjkFIAVzxAyCd4
kca+1mEGcqTlHWLHRTdjock=
X-Google-Smtp-Source: APXvYqwYallqxKrh9HyEWwDUaOiFmDdXAET1JQ2QJD8oOAgLoy0EJ+ft4udwCzwPhdxHCJ3kG373jg==
X-Received: by 2002:a2e:9151:: with SMTP id q17mr12881815ljg.115.1571211161930;
Wed, 16 Oct 2019 00:32:41 -0700 (PDT)
Received: from [10.1.1.105] (188-42-207-82.ip.ukrtel.net. [82.207.42.188])
by smtp.gmail.com with ESMTPSA id z128sm6415759lfa.1.2019.10.16.00.32.40
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 16 Oct 2019 00:32:41 -0700 (PDT)
From: Andrii Kolomoiets
Message-Id:
Content-Type: multipart/mixed;
boundary="Apple-Mail=_CB546CDC-E5AF-498C-A419-BFB8C0EEFB81"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\))
Subject: Re: bug#31497: [Andrii Kolomoiets] bug#31497: 27.0.50; vc-hg doesn't
separate standard error from standard output
Date: Wed, 16 Oct 2019 10:32:39 +0300
In-Reply-To: <87sgnurgng.fsf@gnus.org>
To: Lars Ingebrigtsen
References: <87a7a2sx28.fsf@gnus.org>
<87sgnurgng.fsf@gnus.org>
X-Mailer: Apple Mail (2.3594.4.19)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31497
Cc: 31497@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.0 (-)
--Apple-Mail=_CB546CDC-E5AF-498C-A419-BFB8C0EEFB81
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
On 15 Oct 2019, at 03:33, Lars Ingebrigtsen wrote:
>
> (Please keep the debbugs address in the Cc list -- otherwise the bug
> tracker won't get the message.)
My bad. I emailed with "reply via email to" button on "Mail Archives"
site (https://lists.gnu.org/archive/html/), didn't know what address
must be specified in Cc.
>> There are option 'ui.report_untrusted' in hg since this commit:
>> https://www.mercurial-scm.org/repo/hg/rev/97369f6a6bb6
>
> So that's 2007, so it should presumably be safe to add that.
>
>> It present in mercurial 2.6.2, the earliest version I found in pip.
>>
>> To filter out just "not trusting" warning I can propose to run hg like
>> this:
>> hg log --config ui.report_untrusted=0 -l 1 -r . -T '{rev}'
>
> Could you propose a patch that adds this?
Please see attached patch.
--Apple-Mail=_CB546CDC-E5AF-498C-A419-BFB8C0EEFB81
Content-Disposition: attachment;
filename=hg-untrusted.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="hg-untrusted.patch"
Content-Transfer-Encoding: 7bit
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 61d5ee1d3a..cc737b30b1 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -237,6 +237,7 @@ vc-hg-state-slow
process-environment)))
(process-file
vc-hg-program nil t nil
+ "--config" "ui.report_untrusted=0"
"--config" "alias.status=status"
"--config" "defaults.status="
"status" "-A" (file-relative-name file)))
@@ -1436,7 +1437,7 @@ vc-hg-merge-branch
(buffer (format "*vc-hg : %s*" (expand-file-name root)))
;; Disable pager.
(process-environment (cons "HGPLAIN=1" process-environment)))
- (apply 'vc-do-async-command buffer root vc-hg-program '("merge"))
+ (apply 'vc-do-async-command buffer root vc-hg-program '("--config" "ui.report_untrusted=0" "merge"))
(with-current-buffer buffer (vc-run-delayed (vc-compilation-mode 'hg)))
(vc-set-async-update buffer)))
@@ -1447,7 +1448,8 @@ vc-hg-command
This function differs from vc-do-command in that it invokes
`vc-hg-program', and passes `vc-hg-global-switches' to it before FLAGS."
;; Disable pager.
- (let ((process-environment (cons "HGPLAIN=1" process-environment)))
+ (let ((process-environment (cons "HGPLAIN=1" process-environment))
+ (flags (append '("--config" "ui.report_untrusted=0") flags)))
(apply 'vc-do-command (or buffer "*vc*") okstatus vc-hg-program file-or-list
(if (stringp vc-hg-global-switches)
(cons vc-hg-global-switches flags)
--Apple-Mail=_CB546CDC-E5AF-498C-A419-BFB8C0EEFB81--
From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 16 22:26:05 2019
Received: (at 31497) by debbugs.gnu.org; 17 Oct 2019 02:26:05 +0000
Received: from localhost ([127.0.0.1]:46813 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iKvUL-0002g9-Co
for submit@debbugs.gnu.org; Wed, 16 Oct 2019 22:26:05 -0400
Received: from [80.91.231.51] (port=42686 helo=quimby.gnus.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iKvUK-0002g1-5Q
for 31497@debbugs.gnu.org; Wed, 16 Oct 2019 22:26:04 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1iKvUG-00045o-Lq; Thu, 17 Oct 2019 04:26:03 +0200
From: Lars Ingebrigtsen
To: Andrii Kolomoiets
Subject: Re: bug#31497: [Andrii Kolomoiets] bug#31497: 27.0.50; vc-hg
doesn't separate standard error from standard output
References: <87a7a2sx28.fsf@gnus.org>
<87sgnurgng.fsf@gnus.org>
Date: Thu, 17 Oct 2019 04:26:00 +0200
In-Reply-To: (Andrii
Kolomoiets's message of "Wed, 16 Oct 2019 10:32:39 +0300")
Message-ID: <87o8ygm7k7.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: Andrii Kolomoiets writes: >> Could
you propose a patch that adds this? > > Please see attached patch. Thanks;
applied to Emacs 27.
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 1.3 (+)
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: Andrii Kolomoiets writes: >> Could
you propose a patch that adds this? > > Please see attached patch. Thanks;
applied to Emacs 27.
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: ingebrigtsen.no]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 SPF_NONE SPF: sender does not publish an SPF Record
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Debbugs-Envelope-To: 31497
Cc: 31497@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: 0.3 (/)
Andrii Kolomoiets writes:
>> Could you propose a patch that adds this?
>
> Please see attached patch.
Thanks; applied to Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 16 22:26:11 2019
Received: (at control) by debbugs.gnu.org; 17 Oct 2019 02:26:11 +0000
Received: from localhost ([127.0.0.1]:46816 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iKvUR-0002gX-KZ
for submit@debbugs.gnu.org; Wed, 16 Oct 2019 22:26:11 -0400
Received: from [80.91.231.51] (port=42700 helo=quimby.gnus.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iKvUQ-0002gN-CA
for control@debbugs.gnu.org; Wed, 16 Oct 2019 22:26:10 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from ) id 1iKvUN-00045z-EE
for control@debbugs.gnu.org; Thu, 17 Oct 2019 04:26:09 +0200
Date: Thu, 17 Oct 2019 04:26:07 +0200
Message-Id: <87mue0m7k0.fsf@gnus.org>
To: control@debbugs.gnu.org
From: Lars Ingebrigtsen
Subject: control message for bug #31497
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
@@CONTACT_ADDRESS@@ for details.
Content preview: tags 31497 fixed close 31497 27.1 quit
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 1.3 (+)
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: tags 31497 fixed close 31497 27.1 quit
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 SPF_NONE SPF: sender does not publish an SPF Record
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Debbugs-Envelope-To: control
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.3 (/)
tags 31497 fixed
close 31497 27.1
quit
From unknown Fri Sep 19 17:22:45 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Thu, 14 Nov 2019 12:24:06 +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