Parent Directory | Revision Log
add a new class to do a mirror of a svn reporitory ( for display purpose with viewvc or any others )
1 | #!/bin/bash |
2 | umask 0002 |
3 | LOCAL_REPOS=$1 |
4 | REMOTE_REPOS=$2 |
5 | svnadmin create $LOCAL_REPOS |
6 | # needed, as svnsync complain otherwise : |
7 | # svnsync: Repository has not been enabled to accept revision propchanges; |
8 | # ask the administrator to create a pre-revprop-change hook |
9 | ln -s /bin/true $LOCAL_REPOS/hooks/pre-revprop-change |
10 | svnsync init file://$1 $2 |
11 | # do not sync now, |
12 | # let cron do it or puppet will complain ( especially for long sync ) |
13 | #svnsync synchronize file://$1 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |