Mercurial Hooks are being ignored when using http

Matt Mackall mpm at selenic.com
Mon Jul 7 15:19:51 CDT 2008


On Thu, 2008-07-03 at 11:06 -0700, Michael Burton wrote:
> >>> I have a hook in my main mercurial repository that's intended to
> >>> prevent users from checking in changes that contain leading tabs.
> >>> However, it appears that the hook is not being run when I push to  
> >>> the
> >>> repository using https.  Do I need to do something special to enable
> >>> hooks over http?  I'm using mercurial 1.0.1 on client and server,  
> >>> and
> >>> hgwebdir.cgi.
> >>> ....
> >>>
> >>
> >> Does the http server run under the same permission as the owner of  
> >> the
> >> hgrc file? If not, the hooks are ignored.
> >
> >
> > Good idea, but yes, they both run as the same user.  Any other ideas?
> >
> 
> 
> Just thought I'd check in and see if anyone has any other ideas about  
> what might be causing this problem.  I'm stumped.

I'm stumped too. Since hooks work for lots of people, I'd strongly
suspect a config issue on your end. Check your logs. Check permissions.
Check whether you can get hooks to work in a sample repo using hg serve.
Add print statements to the source.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list