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

RE: post-commit hook fires before post-lock hook

From: Mike Coyne <Mike.Coyne_at_PACCAR.com>
Date: Wed, 4 Mar 2009 07:20:07 -0600

I am currently working with a mirrored svn server -master configuration
with using subversion-1.5.5. On linux rhel5.3 .

I have noticed a issue when a commits contains a locked file correctly
owned by the user making the commit.

The master correctly automagicly unlocks the file for the user and
process the commit but the post-commit hook and post-lock hook are
reversed . This is a problem if the post-commit in my case runs the
svnsync sync https://slave/... and the post-lock run the svn unlock
https://slave/...

The locks were placed on the slave with a post-lock hook to snv lock
under the owner of the "slave repository" which is the only user with
write privileges on the slave. I was not able to find a way lock the
file as the repository owner ( same user running svnscyn ) and set the
ownership of the lock to a different user?

the svncsync fails due to a locked file on the slave. I was able to
reverse the order by submitting torque batch jobs from the post hook
scripts and putting the commit batch job in a holding patterns until the
queue for the unlocks was clear . This is very unwieldy to manage.

I have not yet found where to look in the code for a place to start
digging. Any help would be appreciated or any suggestions as to a more
elegant work around for un-reversing the post hooks...

Thank You in advance for your time..

Mike Coyne

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1266766
Received on 2009-03-04 14:35:34 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.