[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: Re: Problem with python + hook

From: John Niven <jniven_at_bravurasolutions.com>
Date: Mon, 25 Aug 2008 15:36:29 +1200

(Disregard that; I've remembered why Python uses /usr/bin/env - it's to
find python on the $PATH. Use the first approach, and check that the
path is correct).

> -----Original Message-----
> From: John Niven [mailto:jniven_at_bravurasolutions.com]
> Sent: Monday, 25 August 2008 15:30
> To: Robert Dailey; Ryan Schmidt
> Cc: David Weintraub; svn
> Subject: RE: Re: Problem with python + hook
>
> > -----Original Message-----
> > From: Robert Dailey [mailto:rcdailey_at_gmail.com]
> > Sent: Monday, 25 August 2008 15:26
> > To: Ryan Schmidt
> > Cc: David Weintraub; svn
> > Subject: Re: Problem with python + hook
> >
> > At the top of "post-commit" file, I put:
> >
> > #!/usr/bin/python
> >
> > I also tried:
> >
> > #!/usr/bin/env python
>
> I suspect it would need to be...
> #!/usr/bin/env /usr/bin/python
>
> As far as I can remember the "#!/usr/bin/env ..." idiom is
> necessary with Python, and since your hook scripts run with
> no environment you'll need to specify where python is.
>
> Cheers
> John
>
> >
> > None of these have had any effect.
> >
> > On Sun, Aug 24, 2008 at 10:18 PM, Ryan Schmidt
> > <subversion-2008c_at_ryandesign.com> wrote:
> > >
> > > On Aug 24, 2008, at 22:12, Robert Dailey wrote:
> > >
> > >> I tried your hints but I'm still not getting anything. I'm
> > assuming
> > >> the errors will appear during the commit process on the client,
> > >> however I have seen no errors. I don't think that
> > subversion is even
> > >> trying to execute it... I've set the chmod to 777, and it
> > still won't
> > >> work.
> > >
> > > The output of a post-commit hook, whether to stdout or
> > stderr, is discarded.
> > > You won't ever see it. You should write any relevant
> information to
> > > your own logfile if desired.
> > >
> > >
> > >> Anything else I can try?
> > >
> > >
> > >>> On Sun, Aug 24, 2008 at 5:33 PM, Robert Dailey wrote:
> > >>>>
> > >>>
> > >>>> call( "svn", "update", "--non-interactive",
> "/srv/http/website" )
> > >
> > >
> > > You need to specify the absolute path to the svn binary
> > (and any other
> > > binaries you want to use) since hooks run with an empty
> environment
> > > for security reasons.
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> > For additional commands, e-mail: users-help_at_subversion.tigris.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-25 05:36:54 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.