[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 15:59:35 CET

[snip]
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.
[/snip]

Everything was created via Notepad by myself (hook script, vbs script)
and executed under my account (I run either the SVN COMMIT command or
call the batch script from the same command-prompt window) on my laptop
[my acct is local admin; no NT domain configured].

I am now truly curious why the step would execute when batch is called
directly, but not when SVN COMMIT hooks are executed.

ANYONE FROM CollabNet/Subversion Team: What are the steps between (and
special perms required) for the hooks????

Thanks,

- nasser

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com
=========================================

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

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
martelsc@videotron.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 21 16:03:19 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.