[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: Dassi, Nasser <NDassi_at_141xm.com>
Date: 2005-01-21 04:11:52 CET

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...

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com
O: 212-297-8045
M: 917-747-6326
F: 212-297-8006
=========================================

-----Original Message-----
From: Simon Comeau Martel [mailto:martelsc@videotron.ca]
Sent: Thursday, January 20, 2005 9:50 PM
To: users@subversion.tigris.org
Subject: Re: Commit hooks malfunctioning...

Dassi, Nasser wrote:
> When I create a multi-step start-commit, pre-commit, or post-commit
> hook, the process does not execute all steps.

Since you are originally from Quebec, I'll try to help you ;0)

   The steps are as follows:
>
> 1. svn status > random.txt (Works)

Where is the file created ?
> 2. cscript blah.vbs (Runs -> creates a file, random1.txt)

Can you give us an example of the content of your random1.txt file?
> 3. svn add --targets random1.txt (Fails)

Have you tried to redirect stdout/stderr to a file? That could give you
  a clue about the problem. As a free guess, could your working
directory be the problem? (You think you are executing from somewhere,
but are elsewhere...)

Have a good day

--
Simon Comeau Martel
martelsc@videotron.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
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:15:25 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.