windows c++ hooks
From: Mike Crouse <burnclouds_at_gmail.com>
Date: Wed, 23 Jul 2008 09:45:39 -0400
I'm trying to write some hooks using c++.
I use start-commit on the primary so that it blocks user "replicator" from
if (USER != "replicator") return 0;
I use start-commit on the backup so that it blocks all other users from
if (USER != "replicator") exit 1;
I use post-commit on the primary to call:
/usr/local/bin/svnsync --non-interactive sync svn://primary/repo1
and post-revprop-change to call (using short hand for the REV variable):
/usr/local/bin/svnsync --non-interactive copy-revprops svn://primary/repo1
Here is a short copy similar to my start-commit on the primary:
I compiled using gcc.
if I call the start-commit explicitly all works fine.
This is an archived mail posted to the Subversion Users mailing list.