Accessing HTTP user in a hook

John Ament my.reprive at gmail.com
Tue Jun 29 09:41:43 UTC 2010


To be honest with you, I'm not sure which args you're referring to.  os
wouldn't be an arg in this case, right?

On Tue, Jun 29, 2010 at 12:15 AM, Matt Mackall <mpm at selenic.com> wrote:

> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20100629/4ba6cad2/attachment.html>


More information about the Mercurial mailing list