Gedday all,

 

I am setting up a subversion + apache + trac (0.11b2) + build server and
I am having problems getting the subversion -> trac intergration working
properly (or even at all).

 

Firstly my scripts.

 

<post-commit.cmd>

SET REPOS-PATH=%1

SET REV=%2

 

SET TEMP=%USERPROFILE%\Local Settings\Temp

SET TMP=%USERPROFILE%\Local Settings\Temp

SET ComSpec=%SystemRoot%\system32\cmd.exe

SET
Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\IN
STALLS\SVN\svn-win32-1.4.6\bin;D:\INSTALLS\PYTHON\2.5

SET PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

SET windir=%SystemRoot%

 

D:\DATABASES\SUBVERSION\REPOS\test-repo\hooks\trac-post-commit-hook.cmd
%REPOS-PATH% %REV%

 

<trac-post-commit-hook.cmd>

SET TRAC_ENV=D:\DATABASES\TRAC-DB\test-repo

SET REV=%2

 

D:\INSTALLS\PYTHON\2.5\Python.exe
D:\DATABASES\SUBVERSION\REPOS\scripts\trac-post-commit-hook.py -p
%TRAC_ENV% -r %REV%

 

As you can see the subversion post-commit hook just sets up the
environment and invokes the trac hook script. I wasn't completely sure
what environmental things needed to be setup however I knew that
subversion gives us a 'clean' environment for hook scripts so as you can
see I basically setup everything I could find.

 

These scripts work fine in testing (when I simply invoke post-commit.cmd
passing in required variables) - however when I try to run the scripts
from the 'hook enviroment' subversion produces I don't have any success.

 

Can somebody who knows a little more than me shed some light on what may
be happening ?

 

Finally, big thanks to the developers, this is a nice pice of kit. 



Steven Higgan
Development & Integration Services

INTERGEN: SUITE 6, CENTRE FOR INNOVATION, 87 ST DAVID STREET, PO BOX 6485, 
DUNEDIN, NEW ZEALAND.
TEL +64 3 479 4099        FAX +64 3 479 8576    MOB +64 21 936 439    
WWW.INTERGEN.CO.NZ
_________________________________________________________________________________________________
Want me to do something? Send me an action item: www.actionthis.com
Catch the latest on our blog: www.intergen.co.nz/blog
Be kind to the planet: Do you really need to print this? 
_________________________________________________________________________________________________
This electronic message together with any attachments is confidential. If you 
are not the intended recipient: (i) do not copy, disclose or use the contents 
in any way (ii) please let us know by return e-mail immediately and then 
destroy the message. Intergen is not responsible for any changes made to this 
message and/or any attachments after sending by Intergen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to