Pierre,

I use something like this for pre-commit; post-commit is a bit more
verbose but similar. "setenv.cmd" is a shared script with Python path
etc, used by all hook scripts and located in the same directory.
Single limitation: no double quotes in the log messages  :-( , but
single quotes are OK. BTW, the "set /p var=<file" from your BAT file
example is a neat trick but seems to read only the first line from a
file on my system, no matter how many lines are actually there.
HTH,

Sergey.

@echo off
setlocal

set REPOS=%~1
set TXN=%~2

call %~dp0setenv.cmd

for /f "usebackq delims==" %%i in (`svnlook.exe log -t "%TXN%" "%REPOS
%"`) do set LOG=%%i
if "%LOG%" == "" (
    echo Please specify a log message 1>&2
        exit 1
)
--~--~---------~--~----~------------~-------~--~----~
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