From 2256d3a476f4ee7e16d6e094fd4873a9d6756013 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 17 Jan 2011 15:24:08 +0000 Subject: add a new class to do a mirror of a svn reporitory ( for display purpose with viewvc or any others ) --- modules/subversion/templates/create_svn_mirror.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/subversion/templates/create_svn_mirror.sh (limited to 'modules/subversion/templates/create_svn_mirror.sh') diff --git a/modules/subversion/templates/create_svn_mirror.sh b/modules/subversion/templates/create_svn_mirror.sh new file mode 100644 index 00000000..ab0ada1b --- /dev/null +++ b/modules/subversion/templates/create_svn_mirror.sh @@ -0,0 +1,13 @@ +#!/bin/bash +umask 0002 +LOCAL_REPOS=$1 +REMOTE_REPOS=$2 +svnadmin create $LOCAL_REPOS +# needed, as svnsync complain otherwise : +# svnsync: Repository has not been enabled to accept revision propchanges; +# ask the administrator to create a pre-revprop-change hook +ln -s /bin/true $LOCAL_REPOS/hooks/pre-revprop-change +svnsync init file://$1 $2 +# do not sync now, +# let cron do it or puppet will complain ( especially for long sync ) +#svnsync synchronize file://$1 -- cgit v1.2.1