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

question about the hooks

From: loubingyong <loubingyong_at_fmsh.com.cn>
Date: 2004-12-24 03:26:57 CET


I have a question about the suvbersion hooks.

I am using subversion 1.1.1 on Windows 2000/XP system, my server is Windows Server 2003 + Apache 2.0.52 + Subversion 1.1.1.
I want the post-commit hook to send a email via outlook to inform the team members, so I write a VBscript to send email , the code is below:


On Error Resume Next
strComputer = "."
Set objArgs = WScript.Arguments

Set myolapp = CreateObject("Outlook.Application")
Set myItem = myolapp.CreateItem(olMailItem)
Set myRecipient = myItem.Recipients.Add("Team_mail")
myItem.Subject = objArgs(0) & " " & objArgs(1)

then I put the vbscript in Repo/To/Path/hooks, and create a post-commit.bat with only 1 line:


c:\windows\system32\cscript.exe Repo/To/Path/hooks/myvbscript.vbs


When I commit a file, the commit process seems to hang up. So I checked the processes running on the server,
and found the reason is that the cscript.exe did not exit.

But if I modify the VBscript and do not use Outlook object in the code, the VBscript could be excuted normally.

Is Subversion server not compatible with windows host script? Or should I change my server configuration?

Received on Sat Dec 25 23:36:24 2004

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.