[PATCH] hgweb/localrepo: pass the request object to hooks

Sune Foldager cryo at cyanite.org
Fri Nov 6 14:13:43 CST 2009


Dirkjan Ochtman wrote:

> What do you mean by "don't use the web server for it"?

My python code sends its own auth headers back, and uses ErrorResponse
to send the 401. It also checks the incoming auth headers itself. So the
web server is not involved in anything.

> And why can't
> you do this through an extension with the hooks we're experimenting
> with in the other thread?

Hey, I also wrote that in the commit message ;-). It's too early. I need
to authenticate what branches people are trying to push. The only place
to do so is after the changegroup has been added but before the
transaction completes, which is in that hook I mentioned in the commit
message.

/Sune



More information about the Mercurial-devel mailing list