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

Re: Hook Script error

From: si <sshnug.si_at_gmail.com>
Date: 2006-05-30 16:12:16 CEST

> All paths in hook scripts should be absolute paths.

Actually, under windows, environment variables may persist.

For example, svnserve 1.3.1 running as Local Service on
Windows XP with a post-commit hook:

@echo off
set > c:\set.txt

c:\set.txt yields:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APR_ICONV_PATH=C:\Program Files\Subversion\iconv
CommonProgramFiles=C:\Program Files\Common Files
Files\ATI Technologies\ATI Control Panel;C:\Program
Files\NAnt\bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program
Files\Subnant;C:\Program Files\Subversion\bin;C:\Program Files\7-Zip
USERPROFILE=C:\Documents and Settings\LocalService
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\

Note that Path contains Subversion\bin.

What's more of a concern is svn >= 1.3.0 not allowing post-commit
hooks to spawn processes. It's been raised several times already
and no-one has responded? Do we have to bump to the dev mailing
list or file an issue?

Easy way to test under windows, try this as a post-commit hook:

@echo off
start /b defrag c:

(unless you defrag often you'll be waiting a while, so it's a good
chance to go play a game of binary zoo's mono ;-)

svn < 1.3.0 would spawn a process, svn >= 1.3.0 won't.

Painful if you use post-commit emails/backups/etc.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 30 16:14:17 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.