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