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

Done! Tiny Windows bat hoock that ensure "needs-lock" propperty.

From: Célio Vasconcelos <celiovasconcelos_at_gmail.com>
Date: Tue, 17 Feb 2009 11:03:44 -0300

Hello folks,

I was looking for a simple solution that not use Perl/C/Python/etc to
implement pre-commit hook that checks needs-lock property on Windows
Plataform.
I didn't found. So i wrote a small one. It's a Windows bat.

rem "pre-commit hook by Célio Vasconcelos Lima - celiovasconcelos [at] gmail
dot com"

set SVNLOOK="C:\Arquivos de programas\CollabNet Subversion
Server\svnlook.exe"
FOR /F "tokens=1,*" %%A IN ('%SVNLOOK% changed %1 --transaction %2') do (
    %SVNLOOK% propget %1 svn:needs-lock "%%B" --transaction %2
)

This easily can check any property.

Thanks.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1178973

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-17 18:46:29 CET

This is an archived mail posted to the Subversion Users mailing list.