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

How to redirect stdin from pre-revprop-change?

From: John Thile <gilrain_at_gmail.com>
Date: 2006-04-25 20:14:24 CEST

Hello folks,

I'm pretty used to using the pre-commit.bat hook to call all of my
Python scripts. But now I need to have a pre-revprop-change.bat hook.
So, the template says:

# [1] REPOS-PATH (the path to this repository)
# [2] REVISION (the revision being tweaked)
# [3] USER (the username of the person tweaking the property)
# [4] PROPNAME (the property being set on the revision)
# [5] ACTION (the property is being 'A'dded, 'M'odified, or 'D'eleted)

...cool, I know how to deal with that: "c:/python23/python
%1/hooks/spam.py %1 %2 %3 %4 %5". 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!

Thanks,

 -- gilrain

---------------------------------------------------------------------
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:16:06 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.