You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Daniell, Casey B" <Ca...@reyrey.com> on 2006/05/09 21:21:13 UTC

Running Hook script on Windows

Ok, I am having trouble getting my SVN hook script to run automatically
under windows, it runs fine by hand (I have the path info included in
it). When it run manually it creates a file in the C drive that I can
see, so I know its operating, however, when it should run under windows
I get nothing, help?
 
Its located in the hooks directory of the repository where the checkin
is occurring, and has been renamed to post-commit.bat as per the
instructions, what am I missing to get this file called?
 
 
post-commit.bat
-------------------------
 
echo on
 
SET REPOS=%1
SET REV=%2
 
SET
PATH=%PATH%;E:\Applications\Server\Subversion\bin;E:\Applications\Server
\Python
 
E:\Applications\Server\Python\python.exe
E:\Applications\Server\Subversion\tools\hook-scripts\mailer.py commit
%REPOS% %REV%
E:\Applications\Server\Subversion\tools\hook-scripts\mailer.conf >
c:\Casey_Temp_email.txt
 
Casey Daniell
Configuration and Release Manager
Reynolds Web Solutions
www.reynoldswebsolutions.com <http://www.reynoldswebsolutions.com/> 



Confidentiality Statement:
This message is confidential and may contain confidential information it
is intended only for the individual[s] named herein. If this message is
being sent from a member of the legal department, it may also be legally
privileged.   If you are not the named addressee[s] you must delete this
email immediately do not disseminate, distribute or copy.

 

 

Re: Running Hook script on Windows

Posted by Nathan Kidd <na...@spicycrypto.ca>.
Daniell, Casey B wrote:
> Ok, I am having trouble getting my SVN hook script to run automatically 
> under windows, it runs fine by hand (I have the path info included in 
> it). When it run manually it creates a file in the C drive that I can 
> see, so I know its operating, however, when it should run under windows 
> I get nothing, help?
>  
> Its located in the hooks directory of the repository where the checkin 
> is occurring, and has been renamed to post-commit.bat as per the 
> instructions, what am I missing to get this file called?

To find out what's going wrong:

1. rename post-commit.bat post-commit2.bat

2. create new post-commit.bat with one line like this:

   call %~dp0post-commit2.bat %* > c:\logfile.txt 2>&1

HTH,

-Nathan

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