vcs-mirror r4 - in trunk: . contrib
- From: johncarr svn gnome org
- To: svn-commits-list gnome org
- Subject: vcs-mirror r4 - in trunk: . contrib
- Date: Tue, 24 Jun 2008 22:12:29 +0000 (UTC)
Author: johncarr
Date: Tue Jun 24 22:12:29 2008
New Revision: 4
URL: http://svn.gnome.org/viewvc/vcs-mirror?rev=4&view=rev
Log:
Script for turing my rsyncd SVN stuff into svnsync mirrors
Added:
trunk/contrib/
trunk/contrib/svn-to-mirror.sh (contents, props changed)
Modified:
trunk/ (props changed)
Added: trunk/contrib/svn-to-mirror.sh
==============================================================================
--- (empty file)
+++ trunk/contrib/svn-to-mirror.sh Tue Jun 24 22:12:29 2008
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Script to convert an rsync'd copy of a GNOME SVN module into a svnsync-able mirror
+#
+
+MODULE=$1
+
+echo $MODULE
+
+cd /srv/svn/$MODULE
+
+FROM=http://svn.gnome.org/svn/$MODULE
+TO=file:///srv/svn/$MODULE
+
+mv hooks hooks_old
+mkdir hooks
+
+echo '#!/bin/sh' > hooks/pre-revprop-change
+chmod +x hooks/pre-revprop-change
+
+svn propset svn:sync-from-uuid --revprop -r 0 "$(cat db/uuid)" $TO
+svn propset svn:sync-last-merged-rev --revprop -r 0 "$(($(ls db/revs | wc -w)-1))" $TO
+svn propset svn:sync-from-url --revprop -r 0 "$FROM" $TO
+
+svnsync --non-interactive sync $TO
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]