[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN post-commit hook not working for TRAC - MySQL

From: Estguy <hare23_at_gmail.com>
Date: Fri, 25 Sep 2009 16:11:30 +0200

Hello All,

I am trying to update the TRAC ticket using SVN post-commit hook.

I keep getting this error:

"Commit failed (details follow):
MERGE of '/Playground/Work/Development/Software/Embedded': 200 OK (
http://server1)".
When I check the repository the commit was successful.

I am using the post-commit hook provided @
http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook

TRAC version : 0.11.1
SVN : 1.4.4
TortoiseSVN : 1.6.3
Python : 2.5

I tried searching on internet and could not find any relevant information.

Here the code for *trac-post-commit-hook.cmd*
*
/******************************************************************************************************************************/
*
*@ECHO OFF
::
:: Trac post-commit-hook script for Windows
::
:: Contributed by markus, modified by cboos.*
*:: Usage:
::
:: 1) Insert the following line in your post-commit.bat script
::
:: call %~dp0\trac-post-commit-hook.cmd %1 %2
::
:: 2) Check the 'Modify paths' section below, be sure to set at least
TRAC_ENV*

*:: ----------------------------------------------------------
:: Modify paths here:*
*:: -- this one must be set
SET TRAC_ENV= D:\WebData\htdocs\TRACData\Playground*
*:: -- set if Python is not in the system path
SET PYTHON_PATH= C:\Python25*
*:: -- set to the folder containing trac/ if installed in a non-standard
location
SET TRAC_PATH= C:\Python25\Lib\site-packages\Trac-0.11.1-py2.5.egg\trac
:: ----------------------------------------------------------*
*:: Do not execute hook if trac environment does not exist
IF NOT EXIST %TRAC_ENV% GOTO :EOF*
*SET PATH=%PYTHON_PATH%;%PATH%
SET PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%*
*SET REV=%2*
*:: GET THE AUTHOR AND THE LOG MESSAGE
::for /F %%A in ('svnlook author -r %REV% %1') do set AUTHOR=%%A
::for /F "delims==" %%B in ('svnlook log -r %REV% %1') do set LOG=%%B*
*:: CALL THE PYTHON SCRIPT
Python "%~dp0\trac-post-commit-hook.py" -p "%TRAC_ENV%" -r "%REV%"*
*::Python "%~dp0\trac-post-commit-hook.py" -p %TRAC_ENV% -r %REV% -u
%AUTHOR% -m %LOG% 2>&1 1>>D:\temp\trachook.log*
**
*
/******************************************************************************************************************************/
*
**
**
Thanks in advance,
estguy

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2400258

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-25 16:14:14 CEST

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.