unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Un-setting HGRCPATH in vc-hg.el problematic
@ 2010-06-15 11:38 Sascha Wilde
  2010-06-28  4:23 ` Dan Nicolaescu
  0 siblings, 1 reply; 13+ messages in thread
From: Sascha Wilde @ 2010-06-15 11:38 UTC (permalink / raw)
  To: emacs-devel

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."



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-09-17  7:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15 11:38 Un-setting HGRCPATH in vc-hg.el problematic Sascha Wilde
2010-06-28  4:23 ` Dan Nicolaescu
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).