From: Dan Nicolaescu <dann@gnu.org>
To: Sascha Wilde <wilde@sha-bang.de>
Cc: emacs-devel@gnu.org
Subject: Re: Un-setting HGRCPATH in vc-hg.el problematic
Date: Mon, 28 Jun 2010 00:23:10 -0400 [thread overview]
Message-ID: <yxq1vbr23bl.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <m2sk4ofrvr.fsf@kenny.sha-bang.de> (Sascha Wilde's message of "Tue\, 15 Jun 2010 13\:38\:00 +0200")
Sascha Wilde <wilde@sha-bang.de> 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.
next prev parent reply other threads:[~2010-06-28 4:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 11:38 Un-setting HGRCPATH in vc-hg.el problematic Sascha Wilde
2010-06-28 4:23 ` Dan Nicolaescu [this message]
2010-06-28 11:21 ` Sascha Wilde
2010-06-28 15:22 ` Dan Nicolaescu
2010-08-01 15:32 ` Sascha Wilde
2010-08-04 16:58 ` Dan Nicolaescu
2010-08-04 17:26 ` Sascha Wilde
2010-08-05 6:33 ` Dan Nicolaescu
2010-08-06 16:14 ` Sascha Wilde
2010-08-22 13:26 ` Sascha Wilde
2010-09-11 13:48 ` Stefan Monnier
2010-09-17 7:35 ` Sascha Wilde
2010-06-28 19:39 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yxq1vbr23bl.fsf@fencepost.gnu.org \
--to=dann@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=wilde@sha-bang.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.