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

Re: Commit hooks malfunctioning...

From: Simon Comeau Martel <martelsc_at_videotron.ca>
Date: 2005-01-21 04:45:10 CET

Dassi, Nasser wrote:
> For Simon and everyone else,
> Same concern (step #3 of 5 fails), more technical example. Running SVN
> 1.1.2 on WinXP. The batch file is anywhere:
> [snip]
> Set workdir=c:\htdocs
> Cd %workdir%
> Svn status > %workdir%\list.txt
> Cscript c:\svnrepos\proj1\hooks\gen_add.vbs (CREATES list_add.txt in
> proper directory)
> Svn add --targets %workdir%\list_add.txt --force
> Del %workdir%\list.txt
> Del %workdir%\list_add.txt
> [/snip]
> The above batch script executes 100% when called directly; however, the
> "svn add" command does not fire when the entire post-commit hook
> executes. I know the other steps are executed because if I comment-out
> the file deletion lines, the files remain and are clearly populated (the
> "gen_add.vbs" parses the SVN STATUS output into filename-only entries).
> Any help is very much appreciated. Thanks...

Do you know what user is used to run the hook scripts? 'svn add' is the
only command in your snippet that would have problem to execute as an
other user than the proprietary of the wc.

Simon Comeau Martel
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 21 04:47:47 2005

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.