I have a little more information, through bludgeoned debugging I have figured out the place where everything is falling over:
First a recap Trac-post-commit-hook executes fine within a dos-box within a 'normal' environment However trac-post-commit-hook falls over when executed within a more 'confined' subversion environment where there are no no pre-defined environmental variables. I am already providing all of the system-wide environmental variables (that I know of) to the hook-script so there must be something specifically peculiar about the different environments. Can somebody tell me what this line does, and why it falls over in the 'confined' environment as opposed to the 'normal' environment. Trac-post-commit-hook.py chgset = repos.get_changeset(rev) up to this point everything is fine in both dos environments, we can get the trac environment, something that points to the subversion repository - except when we try to perform an action on the repository it flops over. Can anybody help ? From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Higgan Sent: Friday, 18 April 2008 4:26 p.m. To: trac-users@googlegroups.com Subject: [Trac] trac-post-commit-hook - on windows 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 <http://www.intergen.co.nz/> Want me to do something? Send me an action item: www.actionthis.com <http://www.actionthis.com/> Catch the latest on our blog: www.intergen.co.nz/blog <http://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 trac-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---