[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 14:17:59 +0000

>If your script really has 'echo off' and not '@echo off' then your script produces output. And you should check the documentation on how that is handled for the specific hooks. For pre-lock this has side effects:
># If the hook program outputs anything on stdout, the output string will # be used as the lock token for this lock operation. If you choose to use # this feature, you must guarantee the tokens generated are unique across # the repository each >time.

Sorry, my mistake, you are correct. I corrected it to " @echo off".

I tested it 5 minutes ago, same result for either "@echo off" or "echo off":

- during commit all 3 hooks are executed, commit is successfull
- during lock no hook is executed, lock failed

> What operation did you perform to test the lock hook?
> svn lock <something>?
> The lock script is invoked as part of committing.

Yes. I used testing SVN instance on my machine, so SVN bin is not on the PATH.



 Výpis adresáře C:\work\dzcvk82\svn_views\test6\test001

27.11.2013 15:05 <DIR> .
27.11.2013 15:05 <DIR> ..
27.11.2013 15:05 135 testfile.txt
           Souborů: 1, Bajtů: 135
           Adresářů: 2, Volných bajtů: 6 574 776 320

C:\work\dzcvk82\svn_views\test6\test001>c:\software\Subversion\bin\svn.exe lock testfile.txt
svn: E200035: sqlite[S19]: LOCK.lock_token may not be NULL
svn: E200035: Additional errors:
svn: E200035: sqlite[S19]: LOCK.lock_token may not be NULL



Perhaps the the lock fails before the hook execution.

Vena Kovar
Received on 2013-11-27 15:18:39 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.