[issue778] hooks not run in hgwebdir, but works in global hgrc

James Mills prologic at shortcircuit.net.au
Sat Oct 13 02:09:10 UTC 2007


On Fri, Oct 12, 2007 at 06:42:19PM -0500, Matt Mackall wrote:
> > How then do we get a hook working ?
> > 
> > I have apache running as the 'www' user
> > with my hg repos in /data/hg/public/
> > 
> > My hook is in /data/hg/scripts/
> > and is owned by root:root
> 
> But the important bit is: who owns the _config file_ where the hook is
> specified? It must match the user running Mercurial.

The repositories in /data/hg/public/ are all owned
by www:www (the apache user) including the .hg/hgrc
config files.

Would mercurial in this case be running as 'www'
or as 'nobody'. Apache is running as 'www'.

cheers
James

-- 
--
-"Problems are Solved by Method"
-
- James Mills <prologic at shortcircuit.net.au>
- HomePage: http://shortcircuit.net.au/~prologic/
- IRC: irc://shortcircuit.net.au#se

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



More information about the Mercurial-devel mailing list