emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Un-setting HGRCPATH in vc-hg.el problematic


From: Dan Nicolaescu
Subject: Re: Un-setting HGRCPATH in vc-hg.el problematic
Date: Mon, 28 Jun 2010 00:23:10 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Sascha Wilde <address@hidden> 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 address@hidden

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]