From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Un-setting HGRCPATH in vc-hg.el problematic Date: Tue, 15 Jun 2010 13:38:00 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276602140 23296 80.91.229.12 (15 Jun 2010 11:42:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Jun 2010 11:42:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 15 13:42:19 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OOUX1-0003Fd-9F for ged-emacs-devel@m.gmane.org; Tue, 15 Jun 2010 13:42:15 +0200 Original-Received: from localhost ([127.0.0.1]:35125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOUTp-0003ra-Nx for ged-emacs-devel@m.gmane.org; Tue, 15 Jun 2010 07:38:57 -0400 Original-Received: from [140.186.70.92] (port=60116 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOUT4-0003c6-3t for emacs-devel@gnu.org; Tue, 15 Jun 2010 07:38:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOUSx-0002UA-6O for emacs-devel@gnu.org; Tue, 15 Jun 2010 07:38:04 -0400 Original-Received: from mail2.sha-bang.de ([78.47.120.114]:37095 helo=mail.sha-bang.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOUSx-0002Tc-1x for emacs-devel@gnu.org; Tue, 15 Jun 2010 07:38:03 -0400 Original-Received: from kenny.sha-bang.de (xdslch079.osnanet.de [89.166.135.79]) by mail.sha-bang.de (Postfix) with ESMTPSA id CD39B565 for ; Tue, 15 Jun 2010 13:38:00 +0200 (CEST) Original-Received: from wilde by kenny.sha-bang.de with local (Sha Bang MUA v.0711184.68) ID 1OOUSu-0005zs-2E for emacs-devel@gnu.org; Tue, 15 Jun 2010 13:38:00 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125952 Archived-At: Hi*, in vc-hg-state and vc-hg-working-revision the hg binary is run with HGRCPATH set to an empty string in its environment. What is the rational of doing so? The comment states "Avoid localization of messages so we can parse the output." but to my best knowledge the hgrc files are not used to set the localization... The problem with this is, that in general the hgrc files are used by users/administrators to make configurations they actually want to use -- disabling this configurations unconditionally will be a source of endless surprise and misbehavior. I stumbled about it, when I suddenly noticed, that I got "Not trusting file /foo/bar/stuff/.hg/hgrc from untrusted user bob, group users Not trusting file /foo/bar/stuff/.hg/hgrc from untrusted user bob, group users 156" instead of the revision number in my mode line and was no longer able to check in the altered file with C-v C-v. The user bob is configured as trusted in our hg setup so this should not happen -- but with HGRCPATH='' our setup is simply ignored -- that's bad. I'd suggest removing the HGRCPATH='' from the environment. If there are really configuration options that should be disabled for good reasons in this functions, I'd suggest using the --config option of hg to set them specifically. cheers sascha -- Sascha Wilde "Unix was the first OS where you could carry the media and system documentation around in a briefcase. This was fixed in BSD4.2."