| 1 | SET REPOS=%1
|
|---|
| 2 | SET REV=%2
|
|---|
| 3 |
|
|---|
| 4 | ::-----------------------------
|
|---|
| 5 | ::Call the TRAC post-commit hook
|
|---|
| 6 | ::
|
|---|
| 7 | SET TRAC_ENV=D:\ivanoe\work\testTRAC.db
|
|---|
| 8 | SET LOG_FILE=%TEMP%.\svnfileR-%REV%
|
|---|
| 9 | SET AUT_FILE=%TEMP%.\svnfileA-%REV%
|
|---|
| 10 |
|
|---|
| 11 | svnlook log -r %REV% %REPOS%>%LOG_FILE%
|
|---|
| 12 | svnlook author -r %REV% %REPOS%>%AUT_FILE%
|
|---|
| 13 |
|
|---|
| 14 | :: SET THE AUTHOR FROM THE FILE. The file is expected to contain only one line with this value
|
|---|
| 15 | FOR /F %%A IN (%AUT_FILE%) DO SET AUTHOR=%%A
|
|---|
| 16 |
|
|---|
| 17 | python D:\tools\trac-0.8pre\contrib\trac-post-commit-hook -p "%TRAC_ENV%" -r "%REV%" -u "%AUTHOR%" -m "file:%LOG_FILE%"
|
|---|
| 18 | DEL %LOG_FILE%
|
|---|
| 19 | DEL %AUT_FILE%
|
|---|
| 20 | ::
|
|---|
| 21 | ::-----------------------------
|
|---|
| 22 |
|
|---|
| 23 | ::commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
|
|---|
| 24 | ::log-commit.py --repository "$REPOS" --revision "$REV"
|
|---|