untrusted .hgrc and hgwebdir
Dustin Sallings
dustin at spy.net
Wed Jul 18 13:20:12 CDT 2007
On Jul 18, 2007, at 10:29 , Alexis S. L. Carvalho wrote:
>> If I login and restart my web server and then open up hgweb in the
>> UI, I get a bunch of warnings on the console telling me it doesn't
>> trust my .hgrc files.
>
> Hmm... what are you using as the fastcgi script? Hgweb shouldn't
> usually complain about untrusted .hgrcs.
hgwebdir.fcgi from the distribution. It wasn't a problem before
0.9.4. I suppose that what it's telling me is correct.
>> Other than creating a .hgrc for my web server user (who
>> otherwise
>> doesn't have a home directory) or giving my .hgrcs to that user, is
>> there something I can use to get these files trusted?
>
> You can use the HGRCPATH environment variable to tell hg that it
> should
> read the hgrc files specified in that variable instead of the regular
> global hgrcs (/etc/mercurial/hgrc, ~/.hgrc) - repo-specific .hg/hgrc
> will still be read.
Hey, that's exactly what I was looking for. Thanks a lot.
I added
os.environ["HGRCPATH"] = "/path/to/site/global/.hgrc"
and all is well. I was using the /etc/mercurial/hgrc before and it
just seemed wrong.
--
Dustin Sallings
More information about the Mercurial
mailing list