GNU bug report logs - #31497
27.0.50; vc-hg doesn't separate standard error from standard output

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Fri, 18 May 2018 17:43:01 UTC

Severity: minor

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 31497 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 31497 <at> 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
-------------------- Start of forwarded message --------------------
From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
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 <at> gnu.org
To: larsi <at> 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





This bug report was last modified 5 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.