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

RE: Hook executables in Windows

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2003-11-26 23:04:53 CET

Rob Segal wrote:
> This is the full contents of my post-commit.bat batch file,
>
> e:\svn\post-commit.py %1 %2 NsisxUsers.txt "NSISX"
>
> I modified the PATH environment variable but still no luck. Thanks for
your
> continued help.
> Got any other ideas?

Server processes such as Apache might not pick up on PATH changes unless
they are restarted. I'd suggest putting something a la "echo %PATH% >
e:\tmp\path.txt" in post-commit.bat to verify exactly what environment the
process executing the hook is seeing.

>
>
> -----Original Message-----
> From: Arild Fines [mailto:arild.fines@broadpark.no]
> Sent: November 26, 2003 9:47 AM
> To: Rob Segal; users@subversion.tigris.org
> Subject: RE: Hook executables in Windows
>
>
> Rob Segal wrote:
>> Thanks for the suggestions all. Your python script works for me Arild
but
>> not when I commit stuff, only when I run it in a command prompt. Any
>> thoughts on this?
>
> What does your post-commit.bat look like? You will most likely have to
give
> a full path to the script, since I have no idea what the cwd for a
> post-commit hook is. Also make sure that the user account your server
> process(svnserve or httpd) runs under has Python in it's %PATH%.
>
>>
>>
>> Rob Segal wrote:
>>> Has anyone actually created a post-commit hook on Windows that emails
info
>>> about the repository (using the svnlook executable) to a list of email
>>> addresses? If so would you be willing to share your solution?
>>
>> I have a quick-and-dirty Python script that does it for me:
>> http://sourcepost.sytes.net/sourceview.aspx?source_id=8700
>>
>> It is run from post-commit.bat as 'mail.py %1 %2 mailfile "repos title"'
>>
>>> A few of the problems I'm having trouble solving is there is no
equivalent
>>> "sendmail" program on Windows like Unix has.
>>> The second problem is if you
>>> run svnlook from an executable how do you capture the output from that
>>> command to include as your email message text?
>>
>> These are both handled by Python libraries.

--
Arild
AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
RSS: http://ankhsvn.com/blog/Rss.aspx
King Crimson lives in different bodies at different times and the
particular form which the group takes changes. When music appears,
which only King Crimson can play then, sooner or later, King Crimson
appears to play the music
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 26 23:05:30 2003

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.