[PATCH 0 of 1] RFC: simple hook support for hgweb.check_perm

Dirkjan Ochtman dirkjan at ochtman.nl
Fri Nov 6 07:55:46 CST 2009


On Fri, Nov 6, 2009 at 14:39, Sune Foldager <cryo at cyanite.org> wrote:
> This is for discussion and should not be pushed as-is.
>
> This adds simple support for hooks (provided by hgext modules) in hgweb's
> check_perm. The hooks are invoked with the hgweb instance (for access to
> a lot of info useful for authentication), the request object and the desired
> operation. It should either just return (indicating auth success) or raise
> an ErrorResponse exception, which may include authentication headers.

I'd like to how this looks if you implement the default perms as such
hooks. Would that be easy to do?

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list