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

Concurrent commits and post-commit hooks

From: Ken Miller <klm_at_shetlandsoftware.com>
Date: 2004-07-13 16:42:09 CEST

I'm in the process of setting up a SVN repository to replace a medium
sized CVS repository. No major issues yet, and I'm *very* impressed
with the stability and functionality of Subversion. Kudos to the
developers for a great tool!

One of the features I'm trying to exploit is the post-commit hook to
create incremental backups on the fly. Effectively, something like this:

    svnadmin dump $1 --revision $2 --incremental >> date-stamped-file

I have a couple of questions:

1. Does SVN enforce the running order of post-commit hooks in revision
number sequence? If two developers commit changes to the repository
creating revisions 1 and 2 respectively, does SVN *always* run the
post-commit hook for revision 1, and then for revision 2?

2. When restoring a Subversion repository, does the backup file need to
be in revision number order? Or, put a different way, does the restore
process the restore in revision number order or file order? If
subversion processes the file in revision number order, then #1 is not
an issue.

I have searched the archives, but I've not found very much information
on post-commit hooks, hence my question here.

Cheers!

    -klm.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 13 16:42: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.