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

Program to start long running hooks in Windows for Subversion >= 1.3

From: si <sshnug.si_at_gmail.com>
Date: 2006-07-11 05:14:50 CEST

Greetings,

As I wasn't able to find a simple work-around for the issue of Subversion post-
commit hooks not immediately returning to clients after a commit on Windows
for svn >= 1.3 (see http://subversion.tigris.org/issues/show_bug.cgi?id=2560)
I ended up writing a simple app which solves the problem for me. Others running
.net might also find it useful, so i've attached the source and exe,
along with a
nant build file.

Caveats:
- Only tested on .net 2.0, but should work on .net 1.1
- Ensure program has full path and filename, including appropriate extensions
- If you run svnserve as per Microsoft recommendations as Local Service
or Network Service instead of Local System, ensure process has rights to
execute HookStart.exe.

I've also updated Subnant (my Subversion admin toolkit), if you use this and
want the fix, update from trunk and call 'subnant install', this will create a
hookstart wrapper in the same location as subnant wrapper and compile
HookStart.exe for you. Then update your hooks and Subnant default hooks
with the new wrapper, see hooks/post-commit.bat.example

Feedback welcome.

peace
si

p.s. I've no doubt someone will now come along and show me how to spawn a
process via dos with closed streams which solves this problem...good for you :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Tue Jul 11 05:16:16 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.