untrusted .hgrc and hgwebdir

Alexis S. L. Carvalho alexis at cecm.usp.br
Wed Jul 18 12:29:14 CDT 2007


Thus spake Dustin Sallings:
> 
> 	I'm running hgwebdir as a fast cgi from lighttpd and having it serve 
> stuff out of a directory I own.
> 
> 	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.

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

Alexis


More information about the Mercurial mailing list