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:
#include <iostream>
if (argc>=2){
I compiled using gcc.
Sending testcommit.text
>
if I call the start-commit explicitly all works fine.
Help. Please.
|
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.