Accessing HTTP user in a hook
Matt Mackall
mpm at selenic.com
Tue Jun 29 04:15:17 UTC 2010
On Mon, 2010-06-28 at 21:05 -0400, John Ament wrote:
> Hmmm. I think it has to do with how the script is being called. I
> executed yours and it worked fine for me.
>
> The script I'm playing with is mozilla's pushlog hook. The call looks
> like this:
>
> python:mozhghooks.pushlog.log
>
> where the log function is defined like this:
>
> def log(ui, repo, node, **kwargs):
>
> There are other calls to os, it just seems like the environment is
> getting passed along.
No, for hooks, the args get passed in via kwargs.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list