From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Un-setting HGRCPATH in vc-hg.el problematic Date: Mon, 28 Jun 2010 00:23:10 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277699001 28150 80.91.229.12 (28 Jun 2010 04:23:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2010 04:23:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sascha Wilde Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 28 06:23:19 2010 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 1OT5sN-0005mr-FS for ged-emacs-devel@m.gmane.org; Mon, 28 Jun 2010 06:23:19 +0200 Original-Received: from localhost ([127.0.0.1]:42788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT5sM-0005jO-9D for ged-emacs-devel@m.gmane.org; Mon, 28 Jun 2010 00:23:18 -0400 Original-Received: from [199.232.76.173] (port=43690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT5sH-0005jJ-2J for emacs-devel@gnu.org; Mon, 28 Jun 2010 00:23:13 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OT5sF-0004uN-TZ for emacs-devel@gnu.org; Mon, 28 Jun 2010 00:23:12 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:46605) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OT5sF-0004uJ-Na for emacs-devel@gnu.org; Mon, 28 Jun 2010 00:23:11 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OT5sE-0007rP-MZ; Mon, 28 Jun 2010 00:23:10 -0400 In-Reply-To: (Sascha Wilde's message of "Tue\, 15 Jun 2010 13\:38\:00 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:126471 Archived-At: Sascha Wilde writes: > 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. This message is probably better sent to bug-gnu-emacs@gnu.org > 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. If you can suggest exactly what --config options to use, it would be very easy to make that change.