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

Re: post-commit hook

From: Andy Berdan <berdandy_at_gmail.com>
Date: 2006-01-03 21:09:27 CET

[snip]
> attempt to commit the error log files. So spawning another process does
> not seem to be working. Does spawning another process mean calling
> another batch file or Makefile from my hook?

Yes, but you want the original script to end and terminate normally,
while the new batch file is created in a new process space. That way,
the hook returns normally, life continues as usual, but another
program is off to the side, checking in the logs.

What you DON'T want to do, is have post-commit call your log-commit
script, wait for termination and then continue with the post-commit
(which seems to be what you're doing now).

You should be able to get the correct behaviour on windows systems by
calling your custom script with 'start myscript.bat'

See 'help start' for more options (/B should be useful, once you're
done testing).

--
Andy.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 3 21:51:01 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.