From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: References: <87a7a2sx28.fsf@gnus.org> <87sgnurgng.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_CB546CDC-E5AF-498C-A419-BFB8C0EEFB81" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182949"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 31497@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 16 09:33:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKdo0-000lRt-DN for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2019 09:33:12 +0200 Original-Received: from localhost ([::1]:38324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKdnz-00017F-0a for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2019 03:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38213) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKdnr-000176-Ti for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 03:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKdnq-0007UA-Qn for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 03:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKdnq-0007TL-KI for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 03:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKdnq-0006GR-F1 for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 03:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2019 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31497 X-GNU-PR-Package: emacs Original-Received: via spool by 31497-submit@debbugs.gnu.org id=B31497.157121117024059 (code B ref 31497); Wed, 16 Oct 2019 07:33:02 +0000 Original-Received: (at 31497) by debbugs.gnu.org; 16 Oct 2019 07:32:50 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <87sgnurgng.fsf@gnus.org> X-Mailer: Apple Mail (2.3594.4.19) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169420 Archived-At: --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--