You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Troy Evans <ve...@gmail.com> on 2009/08/06 15:49:07 UTC

problem with asynchronous commits and pre-commit hook

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@subversion.tigris.org].