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

Re: How to redirect stdin from pre-revprop-change?

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-04-25 20:44:28 CEST

John Thile wrote:
> Uh oh, but then:
>
> # [STDIN] PROPVAL ** the new property value is passed via STDIN.
>
> I figured there would be an easy answer to this, but after some pretty
> deep searching I couldn't find a way to send stdin to my script. I
> hope it's super-easy and I'm just being daft!

Indeed it is easy; You don't have to do anything! :) STDIN is
automatically inherited by python. My pre-revprop-change.cmd has this line:

"%PYTHON%" "%HOOKDIR%\mailer.py" propchange2 "%REPOS%" "%REV%" "%USER%"
"%PROPNAME%" "%ACTION%" "%MAILERCONFIG%" || exit 1

(Of course those variables are defined elsewhere, but this shows the
general idea.)

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 25 20:45:07 2006

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.