Edgewall Software

Ticket #1602: trac-post-commit-hook.0.10.3.cmd

File trac-post-commit-hook.0.10.3.cmd, 399 bytes (added by markus, 23 months ago)

Works with trac 0.10.3, international characters in changeset messages and ticket comments, no temporary file

Line 
1@ECHO OFF
2
3SET REV=%2
4SET REPNAME=%~nx1
5
6:: Modify paths and port number here
7SET TRAC_ENV=D:\trac\trac_env\%REPNAME%
8SET TRAC_URL=http://%COMPUTERNAME%:8080/%REPNAME%
9SET PYTHON="C:\Python24\python.exe"
10
11
12:: Do not execute hook if trac environment does not exist
13IF NOT EXIST %TRAC_ENV% GOTO :EOF
14
15%PYTHON% "%~dp0\trac-post-commit-hook.py" -p "%TRAC_ENV%" -r "%REV%" -s "%TRAC_URL%"