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

Re: Subversion Questions

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-25 18:10:30 CEST

On Jul 25, 2006, at 17:24, Andy Levy wrote:

> On 7/25/06, Ryan Schmidt wrote:
>
>> On Jul 25, 2006, at 16:19, Andy Levy wrote:
>>
>>> On 7/25/06, Ron Olson wrote:
>>>
>>>> I'm using subversion and TortoiseSVN as well. The feature I
>>>> believe you're looking for is hook scripts. These are scripts that
>>>> are executed before and after certain svn functions like checkin,
>>>> checkout, pre and post commit, etc.
>>>
>>> There presently is no checkout hook (that I've seen referenced), so
>>> that event can't be scripted. After creating a repository, there
>>> are placeholder scripts in the hooks directory, one for each
>>> "hookable" event, named for each event.
>>
>> With Subversion 1.3.0 and above, and when served using the Apache
>> mod_dav_svn module, it is possible to fake a post-checkout-or-export
>> and a post-update hook. Have a look at this script I created for this
>> purpose:
>>
>> http://www.ryandesign.com/svnhookdispatcher/
>
> If it weren't for the PHP requirement, that'd be killer for my setup.

Note that I only require a command-line PHP interpreter. A PHP web
server module (e.g. mod_php or php-fcgi) is not required. I also
don't require any special features to be compiled into PHP, so the
simplest ./configure && make && make install of PHP should be
sufficient.

Also, the only reason I chose PHP is because it's the language I'm
most comfortable with at the moment. It should be possible to convert
it to perl or ruby or python or any other language you're more
comfortable running on your server. The script is only about 130
lines long, including comments, and it only took a few hours to write
in the first place. I imagine an accomplished perl programmer could
do it in half that size.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 25 18:12:35 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.