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

Re: passing cmd-line params from svn commit to post-commit script

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-06-27 20:56:18 CEST

On Jun 27, 2007, at 12:58, Richard Bos wrote:

> Op Wednesday 27 June 2007 11:15:17 schreef Markus Kuhn:
>
>> Is there any way that I can pass from the "svn commit" command
>> line some
>> command-line arguments to the post-commit hook script? (This would be
>> extremely useful for some types of workflows involving post-commit
>> activity.)
>
> Would it be okay to write the temporarely information to a file in /
> tmp based
> on the TXN variable, like TMP=/tmp/$PRGNAME-$TXN
> The file can be created by the pre-commit hook and removed by the
> post-commit
> hook. Would this be usable?

How would that work? "svn commit" runs on the client computer, and
the pre- and post-commit hooks run on the server computer... How are
you getting the data from the client's command line to the server's
hard disk?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 27 20:56:34 2007

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.