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

Are post-commit hooks atomic?

From: Dewey Sasser <dewey_at_sasser.com>
Date: 2004-09-17 15:51:47 CEST

Hello all,

I have searched the archives and docs to no avail on this question.

I have written a script that mirrors a svn repository to another
location for backup purposes. You can think of this as "svn hotcopy"
done more efficiently.

Because I'm using incremental dump/load the basic algorithm cannot
tolerate out of order or repeated invocations on the same version.
My script handles these error conditions but does not take steps to
make sure it's central logic is atomic.

So, does subversion call my post-commit script atomically? Can I
count on there *never* being two instances of the script running
simultaneously?

Thanks,

-- 
Dewey Sasser
dewey@sasser.com
---
Note that this is a resend -- my first message seems to have disappeared.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 17 15:53:33 2004

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.