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

problem with asynchronous commits and pre-commit hook

From: Troy Evans <velo.troy_at_gmail.com>
Date: Thu, 6 Aug 2009 18:49:07 +0300

Hi, guys! I have a question about concurrent commits and pre-commit hook. I
have implemented a pre-commit hook to check committed java files for
checkstyle violations. The script executes checkstyle validation over files
in transaction and then compares the results with checkstyle check over the
same files in repository. If the amount of checkstyle errors in any file is
exceeded hook fails the commit process. When I started to test the hook I
discovered that in case when several commits are in progress pre-commit hook
is executed in asynchronous way. I mean that commit which started later then
other one executes the hook even if hook started with another commit hasn't
finished it's work yet. You can see the script here:
http://python.su/forum/viewtopic.php?pid=31730#p31730

I would appreciate any help! Thank you.
Sorry for my English, it's far from perfect.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-06 17:57:14 CEST

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.