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

RE: SVN lock at version 1.8.3 and 1.8.4 - not working

From: Kovar, Vaclav (EOM) <Vaclav.Kovar_at_skoda-auto.cz>
Date: Wed, 27 Nov 2013 12:10:27 +0000

>What output does your 'pre-lock' hook template produce?
>My guess would be that it produces something...

Hello,
My repo hasnt any active hooks, just templates in hooks dir.
So as first i tried to run almost empty pre-lock hook and strange is, the batch file is not executed. Next step was to verify other hooks. Commit hooks was started successfully, but lock hook not.

Details:
My (very simple) hook batch (for start-commit, pre-commit and post-commit are similar):

pre-lock.bat
<code>
echo off

echo begin pre-lock >> C:\software\svnroot\repos\test001\hooks\tracefile.txt
echo SVN_REPOS %1 >> C:\software\svnroot\repos\test001\hooks\tracefile.txt
echo SVN_PATH %2 >> C:\software\svnroot\repos\test001\hooks\tracefile.txt
echo SVN_USER %3 >> C:\software\svnroot\repos\test001\hooks\tracefile.txt
echo end pre-lock >> C:\software\svnroot\repos\test001\hooks\tracefile.txt
</code>

And tracefile.txt:

begin start-commit
REPOS C:\software\svnroot\repos\test001
USER iras24
end start-commit
begin pre-commit
REPOS C:\software\svnroot\repos\test001
TXN 4-5
end pre-commit
begin post-commit
REPOS C:\software\svnroot\repos\test001
REV 5
TXN_NAME 4-5
end post-commit

Eq, no lock hook is executed.

Please, any recommendations?
Received on 2013-11-27 13:11:07 CET

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.